function RulesEntityController::storeDependencies
1 call to RulesEntityController::storeDependencies()
- RulesEntityController::save in includes/
rules.core.inc
File
-
includes/
rules.core.inc, line 215
Class
- RulesEntityController
- Make sure loaded rule configs are instantiated right.
Code
protected function storeDependencies($rules_config) {
db_delete('rules_dependencies')->condition('id', $rules_config->id)
->execute();
if (!empty($rules_config->dependencies)) {
foreach ($rules_config->dependencies as $dependency) {
db_insert('rules_dependencies')->fields(array(
'id' => $rules_config->id,
'module' => $dependency,
))
->execute();
}
}
}