function password_policy_install in Password Policy 7
Same name and namespace in other branches
- 8.3 password_policy.install \password_policy_install()
- 5 password_policy.install \password_policy_install()
- 6 password_policy.install \password_policy_install()
- 7.2 password_policy.install \password_policy_install()
Implements hook_install().
File
- ./
password_policy.install, line 248 - Password Policy module installation and upgrade code.
Code
function password_policy_install() {
$query = db_select('users', 'u')
->fields('u', array(
'uid',
))
->distinct()
->condition('u.uid', 0, '>');
db_insert('password_policy_force_change')
->fields(array(
'uid',
))
->from($query)
->execute();
}