aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-14 23:36:16 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-14 23:36:16 +0000
commitfd58db640066f31fc064db72575101aca85c1852 (patch)
tree9e04737de18f284e0d45824ac4bde382ddfa0120 /engine
parent0f8752554aa09bd0e9f4b4ff1cfeb1fec6507b65 (diff)
downloadelgg-fd58db640066f31fc064db72575101aca85c1852.tar.gz
elgg-fd58db640066f31fc064db72575101aca85c1852.tar.bz2
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
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/deprecated-1.8.php16
-rw-r--r--engine/lib/pagehandler.php4
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)) {