Skip to main content
Home
Drupal API Help
Helping Drupal Community, One API at a time

Main menu

  • Home
  • Drupal Core
  • Getting Help

You are here

Home » API reference » Workbench Access 7 » workbench_access.module

function workbench_access_reset_tree in Workbench Access 7

Reset tree data stored in statics.

Necessary when rebuilding the active tree settings.

9 calls to workbench_access_reset_tree()
WorkbenchAccessMenuTestCase::testWorkbenchAccessMenu in tests/workbench_access.test
WorkbenchAccessTaxonomyTestCase::testWorkbenchAccessTaxonomy in tests/workbench_access.test
WorkbenchAccessTestCase::assertWorkbenchScheme in tests/workbench_access.test
Any tests that can be abstracted should go here in a new method.
workbench_access_form_taxonomy_overview_terms_submit in ./workbench_access.module
Updates taxonomy access tree on overview save.
workbench_access_menu_link_update in modules/menu.workbench_access.inc
Implements hook_menu_link_update().

... See full list

File

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

Code

function workbench_access_reset_tree() {
  cache_clear_all('workbench_access_tree', 'cache_bootstrap');
  drupal_static_reset('workbench_access_get_access_tree');
  drupal_static_reset('workbench_access_get_active_tree');
  drupal_static_reset('workbench_access_get_ids_by_scheme');
  drupal_static_reset('workbench_access_get_user_tree');
  drupal_static_reset('workbench_access_user_load_data');
  drupal_static_reset('workbench_access_node_load');
  drupal_static_reset('workbench_access_get_roles');
}

API Navigation

  • Workbench Access 7
  • Classes
  • Functions
  • Files

Drupal is a registered trademark of Dries Buytaert. This site is not affiliated with Dries Buytaert, Drupal Association or Drupal.org.