commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / noreqnewpass / noreqnewpass.install
1 <?php
2
3 /**
4 * @file
5 * Installation functions for noreqnewpass.
6 * TODO: All updates need proper error handling and responses
7 */
8
9 /**
10 * Implementation of hook_install().
11 *
12 * Ensure that noreqnewpass hooks are invoked after other auth module hooks.
13 */
14 function noreqnewpass_install() {
15 $num_updated = db_update('system')
16 ->fields(array(
17 'weight' => 10,
18 ))
19 ->condition('name', 'noreqnewpass')
20 ->execute();
21 }
22
23 /**
24 * Ensure that noreqnewpass hooks are invoked after other auth module hooks.
25 */
26 function noreqnewpass_update_1() {
27 $num_updated = db_update('system')
28 ->fields(array(
29 'weight' => 10,
30 ))
31 ->condition('name', 'noreqnewpass')
32 ->execute();
33 }
34