Révision 950416da
Ajouté par Assos Assos il y a plus de 5 ans
drupal7/sites/all/modules/rules/rules.install | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 | 3 |
/** |
4 |
* @file Rules - Installation file. |
|
4 |
* @file |
|
5 |
* Rules - Installation file. |
|
5 | 6 |
*/ |
6 | 7 |
|
7 | 8 |
/** |
... | ... | |
18 | 19 |
function rules_install() { |
19 | 20 |
module_load_include('inc', 'rules', 'modules/events'); |
20 | 21 |
// Set the modules' weight to 20, see |
21 |
// http://drupal.org/node/445084#comment-1533280 for the reasoning.
|
|
22 |
// https://www.drupal.org/node/445084#comment-1533280 for the reasoning.
|
|
22 | 23 |
db_query("UPDATE {system} SET weight = 20 WHERE name = 'rules'"); |
23 | 24 |
} |
24 | 25 |
|
... | ... | |
26 | 27 |
* Implements hook_uninstall(). |
27 | 28 |
*/ |
28 | 29 |
function rules_uninstall() { |
29 |
variable_del('rules_event_whitelist'); |
|
30 | 30 |
variable_del('rules_debug'); |
31 |
variable_del('rules_debug_log'); |
|
32 |
variable_del('rules_log_errors'); |
|
33 |
variable_del('rules_log_level'); |
|
34 |
|
|
35 |
variable_del('rules_clean_path'); |
|
36 |
variable_del('rules_path_cleaning_callback'); |
|
37 |
variable_del('rules_path_lower_case'); |
|
38 |
variable_del('rules_path_replacement_char'); |
|
39 |
variable_del('rules_path_transliteration'); |
|
40 |
|
|
41 |
// Delete all the debug region variables and then clear the variables cache. |
|
42 |
db_delete('variable') |
|
43 |
->condition('name', 'rules_debug_region_%', 'LIKE') |
|
44 |
->execute(); |
|
45 |
cache_clear_all('variables', 'cache_bootstrap'); |
|
31 | 46 |
} |
32 | 47 |
|
33 | 48 |
/** |
... | ... | |
54 | 69 |
'description' => 'The label of the configuration.', |
55 | 70 |
'default' => 'unlabeled', |
56 | 71 |
), |
57 |
'plugin' => array( |
|
72 |
'plugin' => array(
|
|
58 | 73 |
'type' => 'varchar', |
59 | 74 |
'length' => 127, |
60 | 75 |
'not null' => TRUE, |
... | ... | |
222 | 237 |
'description' => 'The label of the configuration.', |
223 | 238 |
'default' => 'unlabeled', |
224 | 239 |
), |
225 |
'plugin' => array( |
|
240 |
'plugin' => array(
|
|
226 | 241 |
'type' => 'varchar', |
227 | 242 |
'length' => 127, |
228 | 243 |
'not null' => TRUE, |
... | ... | |
492 | 507 |
* Recover the "owner" property for broken configurations. |
493 | 508 |
*/ |
494 | 509 |
function rules_update_7213() { |
495 |
$rows= db_select('rules_config', 'c') |
|
510 |
$rows = db_select('rules_config', 'c')
|
|
496 | 511 |
->fields('c') |
497 | 512 |
->condition('status', ENTITY_OVERRIDDEN) |
498 | 513 |
->condition('owner', 'rules', '<>') |
Formats disponibles : Unified diff
Weekly update of contrib modules