function rb_misc_conditions_get_children in Rules Bonus Pack 7
Describe all child plugins this pluing provides.
This function collects all condition components created in Rules, and exposes them as CTools access plugins.
1 string reference to 'rb_misc_conditions_get_children'
- rb_misc_conditions.inc in plugins/
access/ rb_misc_conditions.inc - Plugin to create access plugins from Rules condition components.
File
- plugins/
access/ rb_misc_conditions.inc, line 82 - Plugin to create access plugins from Rules condition components.
Code
function rb_misc_conditions_get_children($plugin, $parent) {
// Get all Rules condition components.
$components = rules_get_components(FALSE, 'condition');
// Build information about each component, in a way interpretable by CTools.
$plugins = array();
foreach ($components as $name => $component) {
$plugins['rb_misc_conditions:' . $name] = rb_misc_condition_get_plugin_info($parent, $name, $component);
}
return $plugins;
}