function calendar_systems_format_date_calendar_systems in Calendar Systems 7.3
Implementation of hook format_date_calendar_systems Work around to prevent incompatibility with modules that already have a function named module_name_format_date
File
- ./
calendar_systems.module, line 82 - Contains Calendar Systems hook implementations and helpers.
Code
function calendar_systems_format_date_calendar_systems($timestamp, $type = 'medium', $format = '', $timezone = NULL, $langcode = NULL) {
foreach (module_implements('format_date') as $module) {
if ($module != 'date' && $module != 'token' && $module != 'reldate') {
$function = $module . '_format_date';
$r = $function($timestamp, $type, $format, $timezone, $langcode);
if ($r != FALSE) {
return $r;
}
}
}
}