diff options
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/deprecated-1.8.php | 16 | ||||
-rw-r--r-- | engine/lib/pagehandler.php | 4 |
2 files changed, 18 insertions, 2 deletions
diff --git a/engine/lib/deprecated-1.8.php b/engine/lib/deprecated-1.8.php index 431e32a23..0a4a444e3 100644 --- a/engine/lib/deprecated-1.8.php +++ b/engine/lib/deprecated-1.8.php @@ -3759,3 +3759,19 @@ function clear_annotations_by_owner($owner_guid) { return elgg_delete_annotations($options); } + +/** + * @deprecated 1.8 Use {@link elgg_register_page_handler()} + */ +function register_page_handler($handler, $function){ + elgg_deprecated_notice("register_page_handler() was deprecated by elgg_register_page_handler()", 1.8); + return elgg_register_page_handler($handler, $function); +} + +/** + * @deprecated 1.8 Use {@link elgg_unregister_page_handler()} + */ +function unregister_page_handler($handler) { + elgg_deprecated_notice("unregister_page_handler() was deprecated by elgg_unregister_page_handler()", 1.8); + return elgg_unregister_page_handler($handler); +}
\ No newline at end of file diff --git a/engine/lib/pagehandler.php b/engine/lib/pagehandler.php index 0f06dcd31..937b962db 100644 --- a/engine/lib/pagehandler.php +++ b/engine/lib/pagehandler.php @@ -72,7 +72,7 @@ function page_handler($handler, $page) { * * @return true|false Depending on success */ -function register_page_handler($handler, $function) { +function elgg_register_page_handler($handler, $function) { global $CONFIG; if (!isset($CONFIG->pagehandler)) { $CONFIG->pagehandler = array(); @@ -95,7 +95,7 @@ function register_page_handler($handler, $function) { * @since 1.7.2 * @return void */ -function unregister_page_handler($handler) { +function elgg_unregister_page_handler($handler) { global $CONFIG; if (!isset($CONFIG->pagehandler)) { |