Changeset 938:71494b3e512d
- Timestamp:
- 10/29/12 19:48:59 (13 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/plugins.php
r926 r938 85 85 } 86 86 87 # --BEHAVIOR-- pluginBeforeDeactivate 88 $core->callBehavior('pluginsBeforeDeactivate', $plugin); 89 87 90 $core->plugins->deactivateModule($plugin_id); 91 92 # --BEHAVIOR-- pluginAfterDeactivate 93 $core->callBehavior('pluginsAfterDeactivate', $plugin); 94 88 95 http::redirect('plugins.php'); 89 96 } … … 102 109 throw new Exception(__('No such plugin.')); 103 110 } 111 112 # --BEHAVIOR-- pluginBeforeActivate 113 $core->callBehavior('pluginsBeforeActivate', $plugin); 114 104 115 $core->plugins->activateModule($plugin_id); 116 117 # --BEHAVIOR-- pluginAfterActivate 118 $core->callBehavior('pluginsAfterActivate', $plugin); 119 105 120 http::redirect('plugins.php'); 106 121 } … … 150 165 unset($client); 151 166 } 152 167 168 # --BEHAVIOR-- pluginBeforeAdd 169 $core->callBehavior('pluginsBeforeAdd', $plugin); 170 153 171 $ret_code = $core->plugins->installPackage($dest,$core->plugins); 172 173 # --BEHAVIOR-- pluginAfterAdd 174 $core->callBehavior('pluginsAfterAdd', $plugin); 175 154 176 http::redirect('plugins.php?added='.$ret_code); 155 177 }
Note: See TracChangeset
for help on using the changeset viewer.