forked from GNUsocial/gnu-social
Merge branch '0.9.x' into 0.9.x-mobile
This commit is contained in:
commit
d6600b0007
@ -93,6 +93,12 @@ StartShowAside: Showing before the Aside container
|
|||||||
EndShowAside: Showing after the Aside container
|
EndShowAside: Showing after the Aside container
|
||||||
- $action: the current action
|
- $action: the current action
|
||||||
|
|
||||||
|
StartShowNoticeFormData: Showing before the notice form data
|
||||||
|
- $action: the current action
|
||||||
|
|
||||||
|
EndShowNoticeFormData: Showing after the notice form data
|
||||||
|
- $action: the current action
|
||||||
|
|
||||||
StartNoticeSave: before inserting a notice (good place for content filters)
|
StartNoticeSave: before inserting a notice (good place for content filters)
|
||||||
- $notice: notice being saved (no ID or URI)
|
- $notice: notice being saved (no ID or URI)
|
||||||
|
|
||||||
|
@ -142,6 +142,7 @@ class NoticeForm extends Form
|
|||||||
|
|
||||||
function formData()
|
function formData()
|
||||||
{
|
{
|
||||||
|
if (Event::handle('StartShowNoticeFormData', array($this))) {
|
||||||
$this->out->element('label', array('for' => 'notice_data-text'),
|
$this->out->element('label', array('for' => 'notice_data-text'),
|
||||||
sprintf(_('What\'s up, %s?'), $this->user->nickname));
|
sprintf(_('What\'s up, %s?'), $this->user->nickname));
|
||||||
// XXX: vary by defined max size
|
// XXX: vary by defined max size
|
||||||
@ -176,6 +177,9 @@ class NoticeForm extends Form
|
|||||||
$this->out->hidden('notice_return-to', $this->action, 'returnto');
|
$this->out->hidden('notice_return-to', $this->action, 'returnto');
|
||||||
}
|
}
|
||||||
$this->out->hidden('notice_in-reply-to', $this->inreplyto, 'inreplyto');
|
$this->out->hidden('notice_in-reply-to', $this->inreplyto, 'inreplyto');
|
||||||
|
|
||||||
|
Event::handle('StartShowNoticeFormData', array($this));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user