1 views_handler_argument_date.inc | views_handler_argument_date::default_argument_form(&$form, &$form_state) |
Add an option to set the default value to the current date.
Overrides views_handler_argument::default_argument_form
File
- core/
modules/ views/ handlers/ views_handler_argument_date.inc, line 32 - Definition of views_handler_argument_date.
Class
- views_handler_argument_date
- Abstract argument handler for dates.
Code
function default_argument_form(&$form, &$form_state) {
parent::default_argument_form($form, $form_state);
$form['default_argument_type']['#options'] += array('date' => t('Current date'));
$form['default_argument_type']['#options'] += array('node_created' => t("Current node's creation time"));
$form['default_argument_type']['#options'] += array('node_changed' => t("Current node's update time"));
}