You are here

public function views_handler_filter_publication_date::options_form in Publication Date 7.2

Provide the basic form which calls through to subforms.

If overridden, it is best to call through to the parent, or to at least make sure all of the functions in this form are called.

Overrides views_handler_filter::options_form

File

includes/views_handler_filter_publication_date.inc, line 29
Definition of views_handler_filter_publication_date.

Class

views_handler_filter_publication_date
Filter to handle publication dates stored as a timestamp.

Code

public function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['null_date'] = array(
    '#type' => 'radios',
    '#title' => t('Treat empty publication date as'),
    '#options' => array(
      'null' => t('NULL'),
      'now' => t('Current time'),
      'created' => t('Content created date'),
      'changed' => t('Content last modified date'),
    ),
    '#description' => t('How should we treat content without a publication date?'),
    '#default_value' => $this->options['null_date'],
  );
}