public function SearchApiSavedSearchesViewsHandlerFieldInterval::options_form in Search API Saved Searches 7
Overrides views_handler_field_time_interval::options_form().
Adds the custom_labels option.
Overrides views_handler_field_time_interval::options_form
File
- views/
handler_field_saved_search_interval.inc, line 31 - Contains the SearchApiSavedSearchesViewsHandlerFieldInterval class.
Class
- SearchApiSavedSearchesViewsHandlerFieldInterval
- Views field handler for displaying a saved search's notification interval.
Code
public function options_form(&$form, &$form_state) {
$form['custom_labels'] = array(
'#type' => 'checkbox',
'#title' => t('Use custom labels defined in the saved search settings'),
'#default_value' => $this->options['custom_labels'],
);
parent::options_form($form, $form_state);
$form['granularity']['#dependency'] = array(
'edit-options-custom-labels' => array(
0,
),
);
}