diff options
author | diosmosis <benakamoorthi@fastmail.fm> | 2013-12-06 01:49:56 +0400 |
---|---|---|
committer | diosmosis <benakamoorthi@fastmail.fm> | 2013-12-06 01:49:56 +0400 |
commit | 777ca60440aa67e436fb15bb0fc1bd445d32ce78 (patch) | |
tree | e3557a53472016259873109e2932f99b764be42c /core/WidgetsList.php | |
parent | b6c2cf90277b6abeabe13910b04ef286c66a4b67 (diff) |
Fixes #4199, revising event docs and closing ticket.
Diffstat (limited to 'core/WidgetsList.php')
-rw-r--r-- | core/WidgetsList.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/core/WidgetsList.php b/core/WidgetsList.php index 26b4086d83..a3b1098940 100644 --- a/core/WidgetsList.php +++ b/core/WidgetsList.php @@ -74,7 +74,7 @@ class WidgetsList self::$hookCalled = true; /** - * Triggered once when the widget list is first requested. Collects all available widgets. + * Used to collect all available dashboard widgets. * * Subscribe to this event to make your plugin's reports or other controller actions available * as dashboard widgets. Event handlers should call the {@link WidgetsList::add()} method for each @@ -82,12 +82,10 @@ class WidgetsList * * **Example** * - * ``` - * public function addWidgets() - * { - * WidgetsList::add('General_Actions', 'General_Pages', 'Actions', 'getPageUrls'); - * } - * ``` + * public function addWidgets() + * { + * WidgetsList::add('General_Actions', 'General_Pages', 'Actions', 'getPageUrls'); + * } */ Piwik::postEvent('WidgetsList.addWidgets'); } |