You are here

function _taxonomy_access_node_access_update in Taxonomy Access Control 5.2

Same name and namespace in other branches
  1. 6 taxonomy_access.module \_taxonomy_access_node_access_update()
  2. 7 taxonomy_access.module \_taxonomy_access_node_access_update()
5 calls to _taxonomy_access_node_access_update()
taxonomy_access_admin_delete_role in ./taxonomy_access_admin.inc
taxonomy_access_admin_form_submit in ./taxonomy_access_admin.inc
taxonomy_access_defaults_update in ./taxonomy_access_admin.inc
Updates default permissions for a role for a vocabulary
taxonomy_access_grant_update in ./taxonomy_access_admin.inc
Updates permissions for a role for a term
taxonomy_access_taxonomy in ./taxonomy_access.module
Implementation of hook_taxonomy Hook_taxonomy is called when changes are made to the taxonomy structure

File

./taxonomy_access.module, line 593
Allows administrators to specify how each category (in the taxonomy) can be used by various roles.

Code

function _taxonomy_access_node_access_update($nid) {
  foreach ($nid as $node) {
    $loaded_node = node_load($node, NULL, TRUE);
    if (!empty($loaded_node)) {
      node_access_acquire_grants($loaded_node);
    }
  }
  return TRUE;
}