]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
register_entity_url_handler => elgg_register_entity_url_handler (because every other...
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 12 Feb 2011 03:53:07 +0000 (03:53 +0000)
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 12 Feb 2011 03:53:07 +0000 (03:53 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8140 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/deprecated-1.8.php
engine/lib/entities.php

index 9906f163e572ec2c471c996c6e73e29c18ad5ee5..37f9d7fdd63768cc44358a51054bc220afcdc1fe 100644 (file)
@@ -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
index 459f05adae6cbcbae6bc9290ae700c980f793f3e..4a1e496ec84b33a8fb79441f9df77f2c65be12ec 100644 (file)
@@ -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;