diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-10 22:22:40 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-10 22:22:40 +0000 |
commit | c8f6c3c934df01bf969e3d91ae67f0887de10da9 (patch) | |
tree | d21179fda1e19d540eb3ea56b31584f86fc1e338 /mod/sitepages/start.php | |
parent | a7801c71ecc6ce0f0d2a8fc82cdc779da9417aa4 (diff) | |
download | elgg-c8f6c3c934df01bf969e3d91ae67f0887de10da9.tar.gz elgg-c8f6c3c934df01bf969e3d91ae67f0887de10da9.tar.bz2 |
Fixes #2367: With fear and trepidation, converting events/plugin hooks to use elgg_ prefixed versions
git-svn-id: http://code.elgg.org/elgg/trunk@7284 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/sitepages/start.php')
-rw-r--r-- | mod/sitepages/start.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mod/sitepages/start.php b/mod/sitepages/start.php index 82fd0ab72..b98345451 100644 --- a/mod/sitepages/start.php +++ b/mod/sitepages/start.php @@ -39,15 +39,15 @@ function sitepages_init() { // Replace the default index page if user has requested and the site is not running walled garden if (get_plugin_setting('ownfrontpage', 'sitepages') == 'yes') { - register_plugin_hook('index', 'system', 'sitepages_custom_index'); + elgg_register_plugin_hook_handler('index', 'system', 'sitepages_custom_index'); } // define our own ecml keywords and views - register_plugin_hook('get_keywords', 'ecml', 'sitepages_ecml_keyword_hook'); - register_plugin_hook('get_views', 'ecml', 'sitepages_ecml_views_hook'); + elgg_register_plugin_hook_handler('get_keywords', 'ecml', 'sitepages_ecml_keyword_hook'); + elgg_register_plugin_hook_handler('get_views', 'ecml', 'sitepages_ecml_views_hook'); // hook into the walled garden pages - register_plugin_hook('public_pages', 'walled_garden', 'sitepages_public_pages'); + elgg_register_plugin_hook_handler('public_pages', 'walled_garden', 'sitepages_public_pages'); register_action('settings/sitepages/save', FALSE, "{$CONFIG->pluginspath}sitepages/actions/edit_settings.php"); @@ -208,4 +208,4 @@ function sitepages_public_pages($hook, $type, $return_value, $params) { return $return_value; } -register_elgg_event_handler('init', 'system', 'sitepages_init'); +elgg_register_event_handler('init', 'system', 'sitepages_init'); |