You are here

function tokenauth_context_condition_tokenauth::condition_form in Token authentication 6

Same name and namespace in other branches
  1. 6.2 modules/tokenauth_context/plugins/tokenauth_context_condition_tokenauth.inc \tokenauth_context_condition_tokenauth::condition_form()
  2. 7 plugins/tokenauth_context_condition_tokenauth.inc \tokenauth_context_condition_tokenauth::condition_form()

File

plugins/tokenauth_context_condition_tokenauth.inc, line 11

Class

tokenauth_context_condition_tokenauth

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;
}