public function FacetapiUrlProcessorStandard::settingsForm in Facet API 7
Same name and namespace in other branches
- 7.2 plugins/facetapi/url_processor_standard.inc \FacetapiUrlProcessorStandard::settingsForm()
Allows for processor specific overrides to the settings form.
Overrides FacetapiUrlProcessor::settingsForm
File
- plugins/
facetapi/ url_processor_standard.inc, line 137 - The standard url processor class.
Class
- FacetapiUrlProcessorStandard
- Url processor plugin that retrieves facet data from the query string.
Code
public function settingsForm(&$form, &$form_state) {
$facet = $form['#facetapi']['facet'];
$settings = $this->adapter
->getFacetSettingsGlobal($facet);
$form['global']['limit_active_items'] = array(
'#type' => 'checkbox',
'#title' => t('Limit to one active item'),
'#prefix' => '<div class="facetapi-global-setting">',
'#suffix' => '</div>',
'#default_value' => !empty($settings->settings['limit_active_items']),
'#description' => t('Enabling this option allows only one item to be active at a time.'),
);
}