function RulesContainerPlugin::delete
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 2399
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();
}