You are here

function workbench_access_section_save in Workbench Access 7

Save an access section to the {workbench_access} table.

Parameters

$section: The access scheme to save. Follows the format of hook_workbench_access_info().

See also

hook_workbench_access_section_save()

7 calls to workbench_access_section_save()
WorkbenchAccessMenuTestCase::testWorkbenchAccessMenu in tests/workbench_access.test
workbench_access_edit_form_submit in ./workbench_access.module
Generic submit handler for adding sections to forms.
workbench_access_example_taxonomy in ./workbench_access.admin.inc
Install a test vocabulary.
workbench_access_menu_link_insert in modules/menu.workbench_access.inc
Implements hook_menu_link_insert().
workbench_access_rebuild_scheme in ./workbench_access.module
Rebuild the section access tables.

... See full list

File

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

Code

function workbench_access_section_save($section) {

  // Reset the tree.
  workbench_access_reset_tree();

  // Write the record.
  drupal_write_record('workbench_access', $section);

  // Notify other modules.
  module_invoke_all('workbench_access_save', $section);
}