function _taxonomy_access_cache_affected_nodes in Taxonomy Access Control 6
Cache and retrieve nodes affected by a taxonomy change.
Parameters
$affected_nodes: If we are caching, the list of nids to cache.
Return value
The cached list of nodes.
6 calls to _taxonomy_access_cache_affected_nodes()
- taxonomy_access_admin_form_submit in ./
taxonomy_access.admin.inc - Submit handler for the administration form at admin/user/taxonomy_access.
- taxonomy_access_set_default_grants in ./
taxonomy_access.module - Updates default permissions for a role for a vocabulary. Note: This function adds nodes to the affected nodes cache. Callers should run _taxonomy_access_node_access_update() on _taxonomy_access_cache_affected_nodes() after all changes are processed.
- taxonomy_access_set_term_grants in ./
taxonomy_access.module - Updates permissions for a role for a term. Note: This function adds nodes to the affected nodes cache. Callers should run _taxonomy_access_node_access_update() on _taxonomy_access_cache_affected_nodes() after all changes are processed.
- taxonomy_access_taxonomy in ./
taxonomy_access.module - Implements hook_taxonomy().
- taxonomy_access_term_submit in ./
taxonomy_access.module - Submit handler for term deletions. Overrides term deletion handling to determine what node access to update.
File
- ./
taxonomy_access.module, line 545 - Allows administrators to specify how each category (in the taxonomy) can be used by various roles.
Code
function _taxonomy_access_cache_affected_nodes($affected_nodes = NULL) {
static $nodes = array();
// If we were passed a list of nodes, cache.
if (isset($affected_nodes)) {
$nodes = array_merge($nodes, $affected_nodes);
}
else {
return $nodes;
}
}