Commit 3f52e7bc authored by Neil Hastings's avatar Neil Hastings
Browse files

Merge branch '7.x-2.x' of git.drupal.org:project/state_machine into 7.x-2.x

parents 7ac0f2a5 c096bf81
......@@ -227,6 +227,14 @@ class StateFlow extends StateMachine {
// Update the node access table for this node.
$node = node_load($this->object->nid, $this->object->vid, TRUE);
node_access_acquire_grants($node);
//rebuild taxonomy index
if (function_exists('taxonomy_delete_node_index')) {
taxonomy_delete_node_index($node);
}
if (function_exists('taxonomy_build_node_index')) {
taxonomy_build_node_index($node);
}
}
public function set_unpublished() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment