You are here

function tokenauth_context_init in Token authentication 6.2

Implementation of hook_init().

File

modules/tokenauth_context/tokenauth_context.module, line 10
Code for the Token Authentication Context Integration module.

Code

function tokenauth_context_init() {

  // Trigger tokenauth context condition.
  if ($plugin = context_get_plugin('condition', 'tokenauth_auth')) {
    $plugin
      ->execute((int) tokenauth_is_token_authenticated());
  }
}