You are here

function password_policy_install in Password Policy 6

Same name and namespace in other branches
  1. 8.3 password_policy.install \password_policy_install()
  2. 5 password_policy.install \password_policy_install()
  3. 7.2 password_policy.install \password_policy_install()
  4. 7 password_policy.install \password_policy_install()

Implements hook_install().

File

./password_policy.install, line 185
File module installation and upgrade code.

Code

function password_policy_install() {
  drupal_install_schema('password_policy');
  db_query('INSERT INTO {password_policy_force_change} (uid) SELECT DISTINCT uid FROM {users} WHERE uid > 0');
}