function ctools_plugin_example_example_role_ctools_access_settings
Settings form for the 'by role' access plugin.
1 string reference to 'ctools_plugin_example_example_role_ctools_access_settings'
- example_role.inc in ctools_plugin_example/
plugins/ access/ example_role.inc - Plugin to provide access control based upon role membership. This is directly from the ctools module, but serves as a good example of an access plugin.
File
-
ctools_plugin_example/
plugins/ access/ example_role.inc, line 27
Code
function ctools_plugin_example_example_role_ctools_access_settings(&$form, &$form_state, $conf) {
$form['settings']['rids'] = array(
'#type' => 'checkboxes',
'#title' => t('Role'),
'#default_value' => $conf['rids'],
'#options' => ctools_get_roles(),
'#description' => t('Only the checked roles will be granted access.'),
);
}