add event for showing content license in action

This commit is contained in:
Evan Prodromou 2010-01-18 23:25:45 -05:00
parent 21c3e08804
commit 71f519f64a
2 changed files with 26 additions and 17 deletions

View File

@ -687,3 +687,9 @@ StartLeaveGroup: when a user is leaving a group
EndLeaveGroup: when a user has left a group EndLeaveGroup: when a user has left a group
- $group: the group being left - $group: the group being left
- $user: the user leaving - $user: the user leaving
StartShowContentLicense: Showing the default license for content
- $action: the current action
EndShowContentLicense: Showing the default license for content
- $action: the current action

View File

@ -791,6 +791,7 @@ class Action extends HTMLOutputter // lawsuit
*/ */
function showContentLicense() function showContentLicense()
{ {
if (Event::handle('StartShowContentLicense', array($this))) {
$this->element('dt', array('id' => 'site_content_license'), _('Site content license')); $this->element('dt', array('id' => 'site_content_license'), _('Site content license'));
$this->elementStart('dd', array('id' => 'site_content_license_cc')); $this->elementStart('dd', array('id' => 'site_content_license_cc'));
$this->elementStart('p'); $this->elementStart('p');
@ -808,6 +809,8 @@ class Action extends HTMLOutputter // lawsuit
$this->text(_('license.')); $this->text(_('license.'));
$this->elementEnd('p'); $this->elementEnd('p');
$this->elementEnd('dd'); $this->elementEnd('dd');
Event::handle('EndShowContentLicense', array($this));
}
} }
/** /**