Commit | Line | Data |
---|---|---|
7f254ad8 AE |
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 |