You are here

function tokenauth_context_condition_tokenauth::execute in Token authentication 6.2

Same name and namespace in other branches
  1. 6 plugins/tokenauth_context_condition_tokenauth.inc \tokenauth_context_condition_tokenauth::execute()
  2. 7 plugins/tokenauth_context_condition_tokenauth.inc \tokenauth_context_condition_tokenauth::execute()

File

modules/tokenauth_context/plugins/tokenauth_context_condition_tokenauth.inc, line 24

Class

tokenauth_context_condition_tokenauth

Code

function execute($auth_mode) {
  if ($this
    ->condition_used()) {

    // Avoid '0' looking like empty selection.
    $auth_mode += 1;
    foreach ($this
      ->get_contexts($auth_mode) as $context) {
      $this
        ->condition_met($context, $auth_mode);
    }
  }
}