function hook_rules_component_alter

Alter rules components before execution.

This hooks allows altering rules components before they are cached for later re-use. Use this hook only for altering the component in order to prepare re-use through rules_invoke_component() or the provided condition/action. Note that this hook is only invoked for any components cached for execution, but not for components that are programmatically created and executed on the fly (without saving them).

Parameters

$plugin: The name of the component plugin.

$component: The component that is to be cached.

See also

rules_invoke_component()

Related topics

1 invocation of hook_rules_component_alter()
_rules_rebuild_component_cache in ./rules.module
Cache components to allow efficient usage via rules_invoke_component().

File

./rules.api.php, line 948

Code

function hook_rules_component_alter($plugin, RulesPlugin $component) {
}