aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-07 16:46:52 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-07 16:46:52 +0000
commitaea57286ef362a1b463180174feb30ecbb931b60 (patch)
treef53ed5111be29af65e459e3acad0257423c9cb40
parentca3fa67802a9be55ad7cc13b94ceefe343d6db9d (diff)
downloadelgg-aea57286ef362a1b463180174feb30ecbb931b60.tar.gz
elgg-aea57286ef362a1b463180174feb30ecbb931b60.tar.bz2
Minor tweaks to the getIcon code:
* Default now running on priority 1000 * Renamed default hook to a better name Marcus Povey git-svn-id: https://code.elgg.org/elgg/trunk@2214 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/entities.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 5f01613d5..bd42a9edb 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -1953,7 +1953,7 @@
* @param unknown_type $returnvalue
* @param unknown_type $params
*/
- function default_entity_url_hook($hook, $entity_type, $returnvalue, $params)
+ function default_entity_icon_hook($hook, $entity_type, $returnvalue, $params)
{
global $CONFIG;
@@ -2106,7 +2106,7 @@
register_plugin_hook('volatile', 'metadata', 'volatile_data_export_plugin_hook');
/** Hook for rendering a default icon for entities */
- register_plugin_hook('entity:icon:url', 'all', 'default_entity_url_hook', 700);
+ register_plugin_hook('entity:icon:url', 'all', 'default_entity_icon_hook', 1000);
/** Register init system event **/
register_elgg_event_handler('init','system','entities_init');