You are here

function ctools_ruleset_ctools_access_get_children in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 ctools_access_ruleset/plugins/access/ruleset.inc \ctools_ruleset_ctools_access_get_children()

Get all child access plugins.

1 string reference to 'ctools_ruleset_ctools_access_get_children'
ruleset.inc in ctools_access_ruleset/plugins/access/ruleset.inc
Plugin to provide access control based on user rulesetission strings.

File

ctools_access_ruleset/plugins/access/ruleset.inc, line 62
Plugin to provide access control based on user rulesetission strings.

Code

function ctools_ruleset_ctools_access_get_children($plugin, $parent) {
  $plugins = array();
  ctools_include('export');
  $items = ctools_export_crud_load_all('ctools_access_ruleset');
  foreach ($items as $name => $item) {
    $child = ctools_ruleset_ctools_access_merge_plugin($plugin, $parent, $item);
    $plugins[$child['name']] = $child;
  }
  return $plugins;
}