function node_activity_access_grants in Activity 6.2
Same name and namespace in other branches
- 7 modules/node.activity.inc \node_activity_access_grants()
Implementation of hook_activity_access_grants().
File
- modules/
node.activity.inc, line 61 - Activity definition file for node.module
Code
function node_activity_access_grants($account) {
$grants = array();
// Select the nodes you have created.
$created_result = db_query("SELECT nid FROM {node} WHERE uid = %d", $account->uid);
while ($created = db_fetch_object($created_result)) {
$grants['node_author'][] = $created->nid;
}
return $grants;
}