You are here

function views_handler_field_amazon_date::options_form in Amazon Product Advertisement API 7

Same name and namespace in other branches
  1. 6 includes/views_handler_field_amazon_date.inc \views_handler_field_amazon_date::options_form()
  2. 7.2 includes/views_handler_field_amazon_date.inc \views_handler_field_amazon_date::options_form()

Default options form provides the label widget that all fields should have.

Overrides views_handler_field_date::options_form

File

includes/views_handler_field_amazon_date.inc, line 10

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 = REQUEST_TIME;
  $form['date_format']['#options'] = array(
    'default' => format_date($time, 'custom', 'Y-m-d'),
    'custom' => t('Custom'),
  );
}