function masquerade_ctools_masquerade_access_settings in Masquerade Extras 6.2
Same name and namespace in other branches
- 7.2 masquerade_ctools/plugins/access/masquerade.inc \masquerade_ctools_masquerade_access_settings()
Provides a cutomizable form for this access check.
@returns A form. @retval array
Parameters
array $form: The form structure.
array $form_state: The form state.
array $conf: The current plugin configuration.
1 string reference to 'masquerade_ctools_masquerade_access_settings'
- masquerade.inc in masquerade_ctools/
plugins/ access/ masquerade.inc
File
- masquerade_ctools/
plugins/ access/ masquerade.inc, line 39
Code
function masquerade_ctools_masquerade_access_settings(&$form, &$form_state, $conf) {
$form['settings']['mode'] = array(
'#title' => t('How should this be evaluated?'),
'#type' => 'radios',
'#options' => array(
'is_masquerading' => t('Is posing as another user'),
'is_being_masqueraded' => t('Is being used by another user'),
),
'#default_value' => $conf['mode'],
);
return $form;
}