projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
340edc3a6a91a0b18c2a9dc5c30ebee6c7d12721
[yaffs-website]
/
vendor
/
chi-teck
/
drupal-code-generator
/
templates
/
d7
/
hook
/
node_grants.twig
1
/**
2
* Implements hook_node_grants().
3
*/
4
function {{ machine_name }}_node_grants($account, $op) {
5
if (user_access('access private content', $account)) {
6
$grants['example'] = array(1);
7
}
8
$grants['example_author'] = array($account->uid);
9
return $grants;
10
}