You are here

function workbench_access_tree in Workbench Access 7

Return the access tree for a rule set.

Parameters

$info: The rule information.

$keys: Boolean value to return only array keys, or all data.

Return value

An array of access_ids or a data array.

See also

hook_workbench_access_info()

2 calls to workbench_access_tree()
workbench_access_get_access_tree in ./workbench_access.module
Get the access hierarchy for a user.
workbench_access_get_active_tree in ./workbench_access.module
Load the active tree.
2 string references to 'workbench_access_tree'
workbench_access_get_active_tree in ./workbench_access.module
Load the active tree.
workbench_access_reset_tree in ./workbench_access.module
Reset tree data stored in statics.

File

./workbench_access.module, line 539
Workbench Access module file.

Code

function workbench_access_tree($info, $keys = FALSE) {
  $function = $info['access_type'] . '_workbench_access_tree';
  if (function_exists($function)) {
    return $function($info, $keys);
  }
  return array();
}