function comment_activity_grants in Activity 7
Same name and namespace in other branches
- 6.2 modules/comment.activity.inc \comment_activity_grants()
Implements hook_activity_grants().
File
- modules/
comment.activity.inc, line 12 - : Provides Activity access grant implementation for comment module.
Code
function comment_activity_grants($activity) {
$grants = array();
if (!empty($activity->nid)) {
$grants['comment'] = array(
$activity->nid,
);
}
return $grants;
}