function taxonomy_tools_node_grants in Taxonomy Tools 8
Same name and namespace in other branches
- 7 taxonomy_tools.module \taxonomy_tools_node_grants()
Implements hook_node_grants().
File
- ./
taxonomy_tools.module, line 196 - Drupal hooks and functions to work with taxonomy terms.
Code
function taxonomy_tools_node_grants($account, $op) {
$node_grants = array();
$roles = $account->roles;
$node_grants = array(
'taxonomy_tools' => array_keys($roles),
);
return $node_grants;
}