public function RulesContainerPlugin::delete in Rules 7.2
Overrides delete to keep the children alive, if possible.
Overrides RulesPlugin::delete
1 call to RulesContainerPlugin::delete()
- Rule::delete in includes/
rules.plugins.inc - Overridden to ensure the whole Rule is deleted at once.
1 method overrides RulesContainerPlugin::delete()
- Rule::delete in includes/
rules.plugins.inc - Overridden to ensure the whole Rule is deleted at once.
File
- includes/
rules.core.inc, line 2379 - Rules base classes and interfaces needed for any rule evaluation.
Class
- RulesContainerPlugin
- Base class for ContainerPlugins like Rules, Logical Operations or Loops.
Code
public function delete($keep_children = TRUE) {
if (isset($this->parent) && $keep_children) {
foreach ($this->children as $child) {
$child
->setParent($this->parent);
}
}
parent::delete();
}