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:
authormattpiwik <matthieu.aubry@gmail.com>2012-06-01 03:26:11 +0400
committermattpiwik <matthieu.aubry@gmail.com>2012-06-01 03:26:11 +0400
commit5c488f12ad0681827271b35ba7dd2b041c4c4390 (patch)
treeef873d9a6f51ee089370b0b011014ed26283760e /plugins/ExamplePlugin
parent1a3941949f70911a70f9786635a935eb5ef44244 (diff)
Fixes #3164 - Adding 2 new functios to allow piwik plugins to hook on enable / disable
it only takes to define the 2 functions in the plugin class activate() and/or deactivate() git-svn-id: http://dev.piwik.org/svn/trunk@6427 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/ExamplePlugin')
-rw-r--r--plugins/ExamplePlugin/ExamplePlugin.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/ExamplePlugin/ExamplePlugin.php b/plugins/ExamplePlugin/ExamplePlugin.php
index fecb0f2e91..1d1eb60a32 100644
--- a/plugins/ExamplePlugin/ExamplePlugin.php
+++ b/plugins/ExamplePlugin/ExamplePlugin.php
@@ -44,6 +44,16 @@ class Piwik_ExamplePlugin extends Piwik_Plugin
);
}
+ function activate()
+ {
+ // Executed every time plugin is Enabled
+ }
+
+ function deactivate()
+ {
+ // Executed every time plugin is disabled
+ }
+
/**
* @param Piwik_Event_Notification $notification notification object
*/