Révision a5ba142b
Ajouté par Assos Assos il y a presque 6 ans
drupal7/sites/all/modules/rules/rules.install | ||
---|---|---|
513 | 513 |
* Switch out the rules_event_whitelist variable for a cache equivalent. |
514 | 514 |
*/ |
515 | 515 |
function rules_update_7214() { |
516 |
// Enable Rules if currently disabled so that this update won't fail. |
|
517 |
$disable_rules = FALSE; |
|
518 |
if (!module_exists('rules')) { |
|
519 |
module_enable(array('rules')); |
|
520 |
$disable_rules = TRUE; |
|
521 |
} |
|
516 | 522 |
// Set new event_whitelist cache cid. |
517 | 523 |
rules_set_cache('rules_event_whitelist', variable_get('rules_event_whitelist', array())); |
518 | 524 |
// Delete old conf variable. |
... | ... | |
525 | 531 |
rules_get_cache(); |
526 | 532 |
_rules_rebuild_component_cache(); |
527 | 533 |
RulesEventSet::rebuildEventCache(); |
534 |
// Disable Rules again if it was disabled before this update started. |
|
535 |
if ($disable_rules) { |
|
536 |
module_disable(array('rules')); |
|
537 |
} |
|
528 | 538 |
} |
529 | 539 |
|
530 | 540 |
/** |
Formats disponibles : Unified diff
Weekly update of contrib modules