function _tac_lite_get_terms_by_nid in Taxonomy Access Control Lite 6
Same name and namespace in other branches
- 5 tac_lite.module \_tac_lite_get_terms_by_nid()
File
- ./
tac_lite.module, line 439 - Control access to site content based on taxonomy, roles and users.
Code
function _tac_lite_get_terms_by_nid($nid) {
$tids = array();
$terms = taxonomy_node_get_terms($nid);
// terms is now an array of objects. We convert to a simple array of tids
foreach ($terms as $term) {
$tids[$term->tid] = $term->tid;
}
return $tids;
}