function tokenauth_context_condition_tokenauth::execute 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::execute()
- 6 plugins/tokenauth_context_condition_tokenauth.inc \tokenauth_context_condition_tokenauth::execute()
File
- plugins/
tokenauth_context_condition_tokenauth.inc, line 27 - Context condition plugin for Tokenauth module.
Class
- tokenauth_context_condition_tokenauth
- @file Context condition plugin for Tokenauth module.
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);
}
}
}