function _timefield_weekly_summary_time_sort in Timefield 7
Same name and namespace in other branches
- 1.0.x timefield.module \_timefield_weekly_summary_time_sort()
Uasort callback function
1 string reference to '_timefield_weekly_summary_time_sort'
- _timefield_weekly_summary_explode_items in ./
timefield.module - Helper function to explode all items in a timefield value array so that we can sort across multivalue fields
File
- ./
timefield.module, line 1435 - Defines a Field API field for time
Code
function _timefield_weekly_summary_time_sort($a, $b) {
$calca = _timefield_weekly_summary_week_time_offset($a);
$calcb = _timefield_weekly_summary_week_time_offset($b);
if ($calca == $calcb) {
return 0;
}
return $calca < $calcb ? -1 : 1;
}