function workbench_access_roles in Workbench Access 7
Display the roles for a section.
Parameters
$access_type: The type of access requested (e.g.g taxonomy).
$access_type_id: The id for this specific access (here, a taxnomy term tid).
Return value
A list of editors within the given role.
See also
workbench_access_editor_form()
1 string reference to 'workbench_access_roles'
- workbench_access_menu in ./
workbench_access.module - Implements hook_menu().
File
- ./
workbench_access.admin.inc, line 762 - Workbench Access admin file.
Code
function workbench_access_roles($access_type = NULL, $access_type_id = NULL) {
if (is_null($access_type) || is_null($access_type_id)) {
return workbench_access_editors(NULL, NULL, 'role');
}
return drupal_get_form('workbench_access_role_form', $access_type, $access_type_id);
}