function hook_workbench_access_save_user in Workbench Access 7
Responds to the saving of a user-based section assignment.
This hook fires when a user is assigned to a section.
Parameters
$account: The active user account.
$access_id: The access id to store.
$access_scheme: The active access scheme as defined by hook_workbench_access_info().
1 invocation of hook_workbench_access_save_user()
- workbench_access_user_section_save in ./
workbench_access.module - Save a user access record and notify other modules.
File
- ./
workbench_access.api.php, line 389 - API documentation file for Workbench Access.
Code
function hook_workbench_access_save_user($account, $access_id, $access_scheme) {
// Notify our module if the section is related to taxonomy.
if ($access_scheme['access_type'] == 'taxonomy') {
mymodule_save_user($account, $access_id);
}
}