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
2 days 5 hours ago
3 days 20 hours ago
4 days 16 hours ago
4 days 16 hours ago
1 week 4 hours ago
1 week 19 hours ago
1 week 3 days ago
1 week 4 days ago
1 week 4 days ago
1 week 4 days ago