diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-24 00:50:54 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-24 00:50:54 +0000 |
commit | 9c1e6d6463937bdee2d1de9735463a69f8af305d (patch) | |
tree | 8ae66e2c9533ebf21fcf6c1b96be58b140681b7b /engine/lib/plugins.php | |
parent | 9f8dfe11118813e0f4c2808abb012171db61ec52 (diff) | |
download | elgg-9c1e6d6463937bdee2d1de9735463a69f8af305d.tar.gz elgg-9c1e6d6463937bdee2d1de9735463a69f8af305d.tar.bz2 |
Fixes #2655: Converted register_action to elgg_register_action throughout core
git-svn-id: http://code.elgg.org/elgg/trunk@7432 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/plugins.php')
-rw-r--r-- | engine/lib/plugins.php | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/engine/lib/plugins.php b/engine/lib/plugins.php index c0ec7f389..80b68eb5c 100644 --- a/engine/lib/plugins.php +++ b/engine/lib/plugins.php @@ -865,20 +865,17 @@ function plugin_run_once() { * @return void */ function plugin_init() { - // Now run this stuff, but only once run_function_once("plugin_run_once"); - // Register some actions - register_action("plugins/settings/save", false, "", true); - register_action("plugins/usersettings/save"); - - register_action('admin/plugins/enable', false, "", true); - register_action('admin/plugins/disable', false, "", true); - register_action('admin/plugins/enableall', false, "", true); - register_action('admin/plugins/disableall', false, "", true); - - register_action('admin/plugins/reorder', false, "", true); + elgg_register_action("plugins/settings/save", '', 'admin'); + elgg_register_action("plugins/usersettings/save"); + + elgg_register_action('admin/plugins/enable', '', 'admin'); + elgg_register_action('admin/plugins/disable', '', 'admin'); + elgg_register_action('admin/plugins/enableall', '', 'admin'); + elgg_register_action('admin/plugins/disableall', '', 'admin'); + + elgg_register_action('admin/plugins/reorder', '', 'admin'); } -// Register a startup event elgg_register_event_handler('init', 'system', 'plugin_init'); |