Skip to content
Snippets Groups Projects
Commit 79329c6f authored by Tim Steiner's avatar Tim Steiner
Browse files

Trigger a rebuild of the node access table when the selected TAC vocab changes.

git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x@196 20a16fea-79d4-4915-8869-1ea9d5ebf173
parent 60ab6036
No related branches found
No related tags found
No related merge requests found
...@@ -99,9 +99,12 @@ function tac_admin_submit($form, &$form_state) ...@@ -99,9 +99,12 @@ function tac_admin_submit($form, &$form_state)
$vocabulary = $form_state['values']['vocabulary']; $vocabulary = $form_state['values']['vocabulary'];
if ($vocabulary > 0 && $vocabulary != variable_get('tac_vocabulary')) { if ($vocabulary > 0 && $vocabulary != variable_get('tac_vocabulary')) {
variable_set('tac_vocabulary', $vocabulary); variable_set('tac_vocabulary', $vocabulary);
node_access_needs_rebuild(TRUE);
return; return;
} else if ($vocabulary <= 0) { } else if ($vocabulary <= 0) {
variable_del('tac_vocabulary'); variable_del('tac_vocabulary');
node_access_needs_rebuild(TRUE);
return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment