function workbench_access_active_options in Workbench Access 7
Build an array of form options for the currently active workbench access tree.
Return value
An array of options, suitable for use in a form.
4 calls to workbench_access_active_options()
- workbench_access_default_form_element in ./
workbench_access.module - Find and alter the native form element for node editing.
- workbench_access_handler_filter_access::exposed_form in includes/
workbench_access_handler_filter_access.inc - Render our chunk of the exposed filter form when selecting.
- workbench_access_handler_filter_access::get_value_options in includes/
workbench_access_handler_filter_access.inc - Child classes should be used to override this function and set the 'value options', unless 'options callback' is defined as a valid function or static public method to generate these values.
- workbench_access_node_form_element in ./
workbench_access.module - Provides a module-specific form for access control.
File
- ./
workbench_access.module, line 1340 - Workbench Access module file.
Code
function workbench_access_active_options() {
$active = workbench_access_get_active_tree();
$tree = workbench_access_get_user_tree();
return workbench_access_options($tree, $active['active']);
}