function tokenauth_context_condition_tokenauth::execute in Token authentication 6
Same name and namespace in other branches
- 6.2 modules/tokenauth_context/plugins/tokenauth_context_condition_tokenauth.inc \tokenauth_context_condition_tokenauth::execute()
- 7 plugins/tokenauth_context_condition_tokenauth.inc \tokenauth_context_condition_tokenauth::execute()
File
- plugins/
tokenauth_context_condition_tokenauth.inc, line 24
Class
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);
}
}
}