function tfa_get_context in Two-factor Authentication (TFA) 7.2
Context for account TFA process.
Parameters
object $account: User account.
Return value
array TFA context.
See also
3 calls to tfa_get_context()
- tfa_entry_access in ./tfa.module 
- Validate access to TFA code entry form.
- tfa_form_submit in ./tfa.form.inc 
- TFA form submission handler.
- tfa_get_process in ./tfa.module 
- Get Tfa object in the account's current context.
File
- ./tfa.module, line 84 
- Two-factor authentication for Drupal.
Code
function tfa_get_context($account) {
  $context = array();
  if (isset($_SESSION['tfa'][$account->uid])) {
    $context = $_SESSION['tfa'][$account->uid];
  }
  // Allow other modules to modify TFA context.
  drupal_alter('tfa_context', $context);
  return $context;
}