function system_variable_option_date_type in Variable 7
Same name and namespace in other branches
- 7.2 includes/system.variable.inc \system_variable_option_date_type()
Callback for date types
1 string reference to 'system_variable_option_date_type'
- system_variable_type_info in includes/
system.variable.inc - Implements hook_variable_type_info().
File
- includes/
system.variable.inc, line 311 - Variable API module. Definition for Drupal core variables
Code
function system_variable_option_date_type($variable, $options) {
$list = array();
foreach (system_get_date_types() as $type => $info) {
$list[$type] = check_plain($info['title']);
}
return $list;
}