function _taxonomy_access_get_nodes_for_term in Taxonomy Access Control 5.2
Same name and namespace in other branches
- 6 taxonomy_access.module \_taxonomy_access_get_nodes_for_term()
3 calls to _taxonomy_access_get_nodes_for_term()
- taxonomy_access_admin_form_submit in ./
taxonomy_access_admin.inc - 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 526 - Allows administrators to specify how each category (in the taxonomy) can be used by various roles.
Code
function _taxonomy_access_get_nodes_for_term($tid) {
$nid = array();
$result = db_query('SELECT nid FROM {term_node} WHERE tid = %d', $tid);
while ($node = db_fetch_object($result)) {
$nid[] = $node->nid;
}
return $nid;
}