function views_handler_field_amazon_date::options_form in Amazon Product Advertisement API 6
Same name and namespace in other branches
- 7.2 includes/views_handler_field_amazon_date.inc \views_handler_field_amazon_date::options_form()
- 7 includes/views_handler_field_amazon_date.inc \views_handler_field_amazon_date::options_form()
File
- includes/
views_handler_field_amazon_date.inc, line 9
Class
- views_handler_field_amazon_date
- A handler to provide proper displays for dates.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$time = time();
$form['date_format']['#options'] = array(
'default' => format_date($time, 'custom', 'Y-m-d'),
'custom' => t('Custom'),
);
}