aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/deprecated-1.8.php9
-rw-r--r--engine/lib/entities.php4
2 files changed, 11 insertions, 2 deletions
diff --git a/engine/lib/deprecated-1.8.php b/engine/lib/deprecated-1.8.php
index 9906f163e..37f9d7fdd 100644
--- a/engine/lib/deprecated-1.8.php
+++ b/engine/lib/deprecated-1.8.php
@@ -3470,4 +3470,13 @@ $asc = false, $fullview = true, $listtypetoggle = false, $pagination = true, $or
function set_view_location($view, $location, $viewtype = '') {
elgg_deprecated_notice("set_view_location() was deprecated by elgg_set_view_location()", 1.8);
return elgg_set_view_location($view, $location, $viewtype);
+}
+
+/**
+ * @deprecated 1.8
+ * @see elgg_register_entity_url_handler()
+ */
+function register_entity_url_handler($function_name, $entity_type = "all", $entity_subtype = "all") {
+ elgg_deprecated_notice("register_entity_url_handler() was deprecated by elgg_register_entity_url_handler()", 1.8);
+ return elgg_register_entity_url_handler($entity_type, $entity_subtype, $function_name);
} \ No newline at end of file
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 459f05ada..4a1e496ec 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -1817,9 +1817,9 @@ function get_entity_url($entity_guid) {
* @return true|false Depending on success
* @see get_entity_url()
* @see ElggEntity::getURL()
+ * @since 1.8.0
*/
-function register_entity_url_handler($function_name, $entity_type = "all",
-$entity_subtype = "all") {
+function elgg_register_entity_url_handler($entity_type, $entity_subtype, $function_name) {
global $CONFIG;