Changeset 2349 for trunk/include
- Timestamp:
- May 17, 2008, 10:40:27 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_html.inc.php
r2299 r2349 732 732 return strip_tags($desc, '<span><p><a><br><b><i><small><big><strong><em>'); 733 733 } 734 735 /** returns the argument_ids array with new sequenced keys based on related 736 * names. Sequence is not case sensitive. 737 * Warning: By definition, this function breaks original keys 738 */ 739 function order_by_name($element_ids,$name) 740 { 741 $ordered_element_ids = array(); 742 foreach ($element_ids as $k_id => $element_id) 743 { 744 $key = strtolower($name[$element_id]) .'-'. $name[$element_id] .'-'. $k_id; 745 $ordered_element_ids[$key] = $element_id; 746 } 747 ksort($ordered_element_ids); 748 return $ordered_element_ids; 749 } 750 734 751 ?>
Note: See TracChangeset
for help on using the changeset viewer.