From fd58db640066f31fc064db72575101aca85c1852 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Mon, 14 Feb 2011 23:36:16 +0000 Subject: Prepended elgg_ to (un)register_page_handler() functions. Deprecated old ones git-svn-id: http://code.elgg.org/elgg/trunk@8239 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/deprecated-1.8.php | 16 ++++++++++++++++ engine/lib/pagehandler.php | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) (limited to 'engine/lib') 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)) { -- cgit v1.2.3