You are here

function hook_workbench_access_save in Workbench Access 7

Responds to the saving of a Workbench Access section.

This hook fires whenever we save changes to an access control section. Normally, this hook is only fired on the initial creation of the section.

Parameters

$section: Section data as defined by hook_workbench_access_info().

1 invocation of hook_workbench_access_save()
workbench_access_section_save in ./workbench_access.module
Save an access section to the {workbench_access} table.

File

./workbench_access.api.php, line 353
API documentation file for Workbench Access.

Code

function hook_workbench_access_save($section) {

  // Notify our module if the section is related to taxonomy.
  if ($section['access_type'] == 'taxonomy') {
    mymodule_do_something();
  }
}