ap_date.admin.inc in AP Style Date 7
Publication date administration forms.
File
includes/ap_date.admin.incView source
<?php
/**
* @file
* Publication date administration forms.
*/
/**
* Date AP Style administration page for callback.
*/
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);
}
Functions
Name | Description |
---|---|
date_ap_style_admin_form | Date AP Style administration page for callback. |