Chris@0: /** Chris@0: * Implements hook_node_grants(). Chris@0: */ Chris@0: function {{ machine_name }}_node_grants($account, $op) { Chris@0: if (user_access('access private content', $account)) { Chris@0: $grants['example'] = array(1); Chris@0: } Chris@0: $grants['example_author'] = array($account->uid); Chris@0: return $grants; Chris@0: }