public function SearchApiSavedSearchesViewsHandlerFieldLink::options_form in Search API Saved Searches 7
Default options form provides the label widget that all fields should have.
Overrides views_handler_field::options_form
File
- views/
handler_field_saved_search_link.inc, line 21 - Contains the SearchApiSavedSearchesViewsHandlerFieldName class.
Class
- SearchApiSavedSearchesViewsHandlerFieldLink
- Views field handler for displaying a saved search's name, optionally linked to the search page.
Code
public function options_form(&$form, &$form_state) {
$form['text'] = array(
'#type' => 'textfield',
'#title' => t('Link label'),
'#default_value' => $this->options['text'],
);
parent::options_form($form, $form_state);
// The path is set by render() so don't allow to set it.
$form['alter']['path'] = array(
'#access' => FALSE,
);
$form['alter']['external'] = array(
'#access' => FALSE,
);
}