public function FacetapiDependencyRole::settingsForm in Facet API 7
Same name and namespace in other branches
- 6.3 plugins/facetapi/dependency_role.inc \FacetapiDependencyRole::settingsForm()
- 7.2 plugins/facetapi/dependency_role.inc \FacetapiDependencyRole::settingsForm()
Overrides FacetapiDependency::settingsForm().
Overrides FacetapiDependency::settingsForm
File
- plugins/
facetapi/ dependency_role.inc, line 34 - The role dependency class.
Class
- FacetapiDependencyRole
- Dependency plugin adding the user role conditions.
Code
public function settingsForm(&$form, &$form_state) {
$form[$this->id]['roles'] = array(
'#type' => 'checkboxes',
'#title' => t('Show facet for specific roles'),
'#default_value' => $this->settings['roles'],
'#options' => array_map('check_plain', user_roles()),
'#description' => t('Show this facet only for the selected role(s). If you select no roles, the facet will be visible to all users.'),
);
}