Changeset 17767
- Timestamp:
- Sep 5, 2012, 10:50:15 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ExtendedDescription/main.inc.php
r17433 r17767 64 64 { 65 65 return get_user_language_desc($tag, get_default_language()); 66 } 67 68 function ed_get_all_alt_names($arr, $name) 69 { 70 if (preg_match_all('#\[lang=(.*?)\](.*?)\[/lang\]#is', $name, $matches)) 71 { 72 foreach ($matches[2] as $alt) 73 { 74 $arr[] = $alt; 75 } 76 } 77 return $arr; 66 78 } 67 79 … … 731 743 add_event_handler ('render_tag_name', 'get_user_language_desc'); 732 744 add_event_handler ('render_tag_url', 'get_user_language_tag_url', 40); 745 add_event_handler ('get_tag_alt_names', 'ed_get_all_alt_names', EVENT_HANDLER_PRIORITY_NEUTRAL, 2); 733 746 add_event_handler ('render_element_description', 'get_extended_desc'); 734 747 add_event_handler ('nbm_render_user_customize_mail_content', 'get_extended_desc');
Note: See TracChangeset
for help on using the changeset viewer.