forked from GNUsocial/gnu-social
let actions set a default address for toselector
This commit is contained in:
parent
dca5e20b91
commit
ec5a43bf4f
@ -657,7 +657,8 @@ class Action extends HTMLOutputter // lawsuit
|
|||||||
|
|
||||||
if (Event::handle('StartMakeEntryForm', array($tag, $this, &$form))) {
|
if (Event::handle('StartMakeEntryForm', array($tag, $this, &$form))) {
|
||||||
if ($tag == 'status') {
|
if ($tag == 'status') {
|
||||||
$form = new NoticeForm($this);
|
$options = $this->noticeFormOptions();
|
||||||
|
$form = new NoticeForm($this, $options);
|
||||||
}
|
}
|
||||||
Event::handle('EndMakeEntryForm', array($tag, $this, $form));
|
Event::handle('EndMakeEntryForm', array($tag, $this, $form));
|
||||||
}
|
}
|
||||||
@ -673,6 +674,11 @@ class Action extends HTMLOutputter // lawsuit
|
|||||||
$this->elementEnd('div');
|
$this->elementEnd('div');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function noticeFormOptions()
|
||||||
|
{
|
||||||
|
return array();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Show anonymous message.
|
* Show anonymous message.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user