function tokenauth_context_condition_tokenauth::condition_form in Token authentication 7
Same name and namespace in other branches
- 6.2 modules/tokenauth_context/plugins/tokenauth_context_condition_tokenauth.inc \tokenauth_context_condition_tokenauth::condition_form()
- 6 plugins/tokenauth_context_condition_tokenauth.inc \tokenauth_context_condition_tokenauth::condition_form()
Condition form.
Overrides context_condition::condition_form
File
- plugins/
tokenauth_context_condition_tokenauth.inc, line 15 - Context condition plugin for Tokenauth module.
Class
- tokenauth_context_condition_tokenauth
- @file Context condition plugin for Tokenauth module.
Code
function condition_form($context) {
$form = parent::condition_form($context);
$default = $this
->fetch_from_context($context, 'values');
$form['#type'] = 'radios';
$form['#default_value'] = reset($default);
return $form;
}