You are here

function ctools_ruleset_ctools_access_get_child in Chaos Tool Suite (ctools) 7

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

Get a single child access plugin.

1 string reference to 'ctools_ruleset_ctools_access_get_child'
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 51
Plugin to provide access control based on user rulesetission strings.

Code

function ctools_ruleset_ctools_access_get_child($plugin, $parent, $child) {
  ctools_include('export');
  $item = ctools_export_crud_load('ctools_access_ruleset', $child);
  if ($item) {
    return ctools_ruleset_ctools_access_merge_plugin($plugin, $parent, $item);
  }
}