1 system.module | system_date_format_load($date_format_name, $include_hidden = TRUE) |
Menu loader function for a date format.
Parameters
string $date_format_name: The date type name.
bool $include_hidden: Include hidden, non-configurable date formats, such as those used by HTML5 date/time elements.
Return value
mixed: The date format array if it exists and is not hidden, FALSE otherwise.
File
- core/
modules/ system/ system.module, line 4053 - Configuration system that lets administrators modify the workings of the site.
Code
function system_date_format_load($date_format_name, $include_hidden = TRUE) {
if (($format = system_get_date_formats($date_format_name)) && ($include_hidden || empty($format['hidden']))) {
return $format;
}
return FALSE;
}