You are here

function tokenauth_context_registry in Token authentication 7

Same name and namespace in other branches
  1. 6 tokenauth.module \tokenauth_context_registry()

Implements hook_context_registry().

File

./tokenauth.module, line 243

Code

function tokenauth_context_registry() {
  $registry = array();
  $registry['conditions'] = array(
    'tokenauth_auth' => array(
      'title' => t('Token Authentication'),
      'description' => t('Set this context based on whether or not the user is logged in via the Token Authentication module.'),
      'plugin' => 'tokenauth_context_condition_tokenauth',
    ),
  );
  return $registry;
}