1 |
85ad3d82
|
Assos Assos
|
<?php
|
2 |
|
|
/**
|
3 |
|
|
* @file
|
4 |
|
|
* Variable API module install file
|
5 |
|
|
*/
|
6 |
|
|
|
7 |
|
|
/**
|
8 |
|
|
* Implements hook_install()
|
9 |
|
|
*/
|
10 |
|
|
function variable_realm_install() {
|
11 |
|
|
// Set module weight for it to run before most modules and initialize variable realms
|
12 |
|
|
db_query("UPDATE {system} SET weight = -1000 WHERE name = 'variable_realm' AND type = 'module'");
|
13 |
|
|
}
|
14 |
|
|
|
15 |
|
|
/**
|
16 |
|
|
* Refresh cache so new classes are found.
|
17 |
|
|
*/
|
18 |
|
|
function variable_realm_update_7000() {
|
19 |
|
|
drupal_flush_all_caches();
|
20 |
|
|
}
|