In this example the 'philosophy' realm is set up and three grant IDs are set up:
function moderate_node_access_records($node) {
$grants = array();
if ($node->type == 'life_lesson') {
$grants[] = array(
'realm' => 'philosophy',
'gid' => 1,
'grant_view' => TRUE,
'grant_update' => FALSE,
'grant_delete' => FALSE,
'priority' => 100,
);
$grants[] = array(
'realm' => 'philosophy',
'gid' => 2,
'grant_view' => TRUE,
'grant_update' => TRUE,
'grant_delete' => FALSE,
'priority' => 100,
);
$grants[] = array(
'realm' => 'philosophy',
'gid' => 3,
'grant_view' => TRUE,
'grant_update' => TRUE,
'grant_delete' => TRUE,
'priority' => 100,
);
}
return $grants;
}
Recent comments
6 hours 3 min ago
1 day 9 hours ago
4 days 5 hours ago
4 days 13 hours ago
4 days 15 hours ago
6 days 52 min ago
6 days 4 hours ago
6 days 4 hours ago
6 days 7 hours ago
6 days 9 hours ago