1 user_role_layout_access.inc | UserRoleLayoutAccess::form(&$form, &$form_state) |
Settings form for configuring this access item.
Overrides LayoutAccessNegatable::form
File
- core/
modules/ layout/ plugins/ access/ user_role_layout_access.inc, line 52 - Plugin to provide access control based upon role membership.
Class
- UserRoleLayoutAccess
- @file Plugin to provide access control based upon role membership.
Code
function form(&$form, &$form_state) {
parent::form($form, $form_state);
$form['roles'] = array(
'#type' => 'checkboxes',
'#title' => t('Role'),
'#default_value' => $this->settings['roles'],
'#options' => user_roles(),
'#description' => t('Only the checked roles will be granted access (or denied access, if "Reverse" is checked).'),
);
}