From: <ji...@us...> - 2009-01-07 21:11:45
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv12479/functions Modified Files: ical_parser.php Log Message: add cal_displaynames sort customization example (commented out) to ical_parser.php Index: ical_parser.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/ical_parser.php,v retrieving revision 1.241 retrieving revision 1.242 diff -C2 -d -r1.241 -r1.242 *** ical_parser.php 4 Jan 2009 21:58:18 -0000 1.241 --- ical_parser.php 7 Jan 2009 21:11:39 -0000 1.242 *************** *** 487,493 **** --- 487,501 ---- $calendar_name = $all_cal_comb_lang; } + /* example of how to customize the display name sort order + if(in_array('US Holidays',$cal_displaynames)){ + unset($cal_displaynames[array_search('US Holidays',$cal_displaynames)]); + array_unshift($cal_displaynames, 'US Holidays'); + } + */ $cal_displayname = urldecode(implode(', ', $cal_displaynames)); #reset this with the correct names $template_started = getmicrotime(); + + //If you want to see the values in the arrays, uncomment below. #print '<pre>'; |