Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <benakamoorthi@fastmail.fm>2013-12-06 01:49:56 +0400
committerdiosmosis <benakamoorthi@fastmail.fm>2013-12-06 01:49:56 +0400
commit777ca60440aa67e436fb15bb0fc1bd445d32ce78 (patch)
treee3557a53472016259873109e2932f99b764be42c /core/WidgetsList.php
parentb6c2cf90277b6abeabe13910b04ef286c66a4b67 (diff)
Fixes #4199, revising event docs and closing ticket.
Diffstat (limited to 'core/WidgetsList.php')
-rw-r--r--core/WidgetsList.php12
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');
}