Commit dc8856643a0146553c5411d785b6e8357f36cb2c

Authored by nbm
1 parent c1de3031

Define the "setup" method for plugin objects, where they can register

their actions, dashlets, &c.

Call the setup method on plugins in the "register" method.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4561 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 6 additions and 0 deletions
lib/plugins/plugin.inc.php
... ... @@ -100,6 +100,8 @@ class KTPlugin {
100 100 }
101 101  
102 102 function register() {
  103 + $this->setup();
  104 +
103 105 require_once(KT_LIB_DIR . '/actions/actionregistry.inc.php');
104 106 require_once(KT_LIB_DIR . '/actions/portletregistry.inc.php');
105 107 require_once(KT_LIB_DIR . '/triggers/triggerregistry.inc.php');
... ... @@ -154,5 +156,9 @@ class KTPlugin {
154 156 call_user_func_array(array(&$oi18nRegistry, 'registeri18n'), $v);
155 157 }
156 158 }
  159 +
  160 + function setup() {
  161 + return;
  162 + }
157 163 }
158 164  
... ...