function system_date_format_load

Menu loader function for a date format.

Parameters

$date_format_id: The date type name.

Return value

The date format id if it exists and is not locked, FALSE otherwise.

File

drupal/core/modules/system/system.module, line 3694
Configuration system that lets administrators modify the workings of the site.

Code

function system_date_format_load($date_format_id) {
  if (($format = system_get_date_formats($date_format_id)) && empty($format['locked'])) {
    return $date_format_id;
  }
  return FALSE;
}