function date_ap_style_admin_form in AP Style Date 7
Date AP Style administration page for callback.
1 string reference to 'date_ap_style_admin_form'
- date_ap_style_menu in ./
date_ap_style.module - Implements hook_menu().
File
- includes/
ap_date.admin.inc, line 11 - Publication date administration forms.
Code
function date_ap_style_admin_form($form, &$form_state) {
$form['ap_style_config'] = array(
'#type' => 'fieldset',
'#title' => t('AP Style Date Display Settings'),
'#description' => t('Configure AP date style default settings when using the AP date style format. (Some options are only available for entity date fields.)'),
'#collapsible' => FALSE,
'#collapsed' => FALSE,
);
$form['ap_style_config']['date_ap_style_defaults'] = array(
'#type' => 'checkboxes',
'#title' => t('Display Options'),
'#options' => array(
'use_today' => t('Use today'),
'cap_today' => t('Capitalize today'),
'use_dow' => t('Use day of week for current week'),
'use_year' => t('Use year'),
'show_time' => t('Show time'),
'cap_noon' => t('Capitalize noon and midnight'),
'use_all_day' => t('Show "All Day" instead of midnight'),
'date_time' => t('Use date before time'),
),
'#default_value' => variable_get('date_ap_style_defaults', array()),
);
return system_settings_form($form);
}