You are here

function prlp_module_implements_alter in Password Reset Landing Page (PRLP) 7

Implements hook_module_implements_alter().

File

./prlp.module, line 254
Password Reset Landing Page module.

Code

function prlp_module_implements_alter(&$implementations, $hook) {

  // Ensure Password Policy form alteration occurs after PRLP form alteration.
  // This allows PRLP to add the password element before Password Policy
  // modifies it.
  if (module_exists("password_policy") && $hook == 'form_alter') {
    $group = $implementations['password_policy'];
    unset($implementations['password_policy']);
    $implementations['password_policy'] = $group;
  }
}