You are here

function _scheduler_get_jscalendar_time_format in Scheduler 5

1 call to _scheduler_get_jscalendar_time_format()
scheduler_form_alter in ./scheduler.module
Implementation of hook_form_alter().

File

./scheduler.module, line 207

Code

function _scheduler_get_jscalendar_time_format() {
  $date_format = variable_get('scheduler_date_format', SCHEDULER_DATE_FORMAT);
  $result = strpos($date_format, stristr($date_format, "a"));
  return $result !== FALSE ? '12' : '24';
}