function date_ampm in Date 7.2
Same name and namespace in other branches
- 5.2 date_api.module \date_ampm()
- 6.2 date_api.module \date_ampm()
- 6 date_api.module \date_ampm()
- 7.3 date_api/date_api.module \date_ampm()
- 7 date_api/date_api.module \date_ampm()
Constructs an array of AM and PM options.
Parameters
bool $required: (optional) If FALSE, the returned array will include a blank value. Defaults to FALSE.
Return value
array An array of AM and PM options.
1 call to date_ampm()
- date_parts_element in date_api/
date_api_elements.inc - Creates form elements for one or more date parts.
File
- date_api/
date_api.module, line 1495 - This module will make the date API available to other modules.
Code
function date_ampm($required = FALSE) {
$ampm = date_ampm_options(FALSE, FALSE);
return !$required ? array(
'' => '',
) + $ampm : $ampm;
}