You are here

function password_policy_js_alter in Password Policy 7.2

Implements hook_js_alter().

File

./password_policy.module, line 269
Enforces password policies.

Code

function password_policy_js_alter(&$javascript) {

  // Because Drupal.settings cannot use a weight attribute, we must alter after
  // the page has been fully loaded.
  $javascript['settings']['data'][] = array(
    'password' => array(
      'strengthTitle' => t('Password compliance:'),
    ),
    'type' => 'setting',
  );
}