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().
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');
}