You are here

require_login.api.php in Require Login 8.2

Same filename and directory in other branches
  1. 8 require_login.api.php

Hooks for the require_login module.

File

require_login.api.php
View source
<?php

/**
 * @file
 * Hooks for the require_login module.
 */

/**
 * Alter default authentication checks.
 *
 * @param array &$default_checks
 *   An array of boolean values indicating authentication status.
 */
function hook_require_login_authcheck_alter(array &$default_checks) {
  $var1 = $var2 = 'some-value';

  // If $var1 equals $var2 then allow unauthenticated access.
  $default_checks[] = $var1 == $var2;
}

Functions

Namesort descending Description
hook_require_login_authcheck_alter Alter default authentication checks.