Context alter documentaion missing

Created on 30 December 2014, about 10 years ago
Updated 16 June 2019, over 5 years ago

Problem/Motivation

Consider function tfa_get_context($account):

/**
 * Context for account TFA process.
 *
 * @param $account User account
 * @return array
 *   @see tfa_start_context() for format
 */
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;
}

It has drupal_alter('tfa_context', $context). There is no documentation for this in tfa.api.php.

Context is explained here , but an API documentation always helps a developer. Also a sample code about how we can alter the context will help.

Proposed resolution

N/A

Remaining tasks

N/A

User interface changes

N/A

API changes

Please add the documentation for drupal_alter('tfa_context', $context) in tfa.api.php.

Thanks.

📌 Task
Status

Needs review

Version

2.0

Component

Documentation

Created by

🇮🇳India subhojit777

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Open in Jenkins → Open on Drupal.org →
    Core: 7.x + Environment: PHP 8.1 & MySQL 8
    last update over 1 year ago
    Patch Failed to Apply
  • Status changed to Needs work over 1 year ago
  • First commit to issue fork.
  • Status changed to Closed: outdated about 2 months ago
  • 🇺🇸United States cmlara

    Drupal 7 end-of-life triage:
    Drupal 7 reached end of life on January 5th.

    The 7.x branches of TFA do not have any additional planned releases.

    The requests in this issue do not appear to exist in the 8.x-1.x and newer branches.

Production build 0.71.5 2024