function comment_activity_grants in Activity 6.2
Same name and namespace in other branches
- 7 modules/comment.activity.inc \comment_activity_grants()
Implementation of hook_activity_grants().
File
- modules/
comment.activity.inc, line 11 - Activity definition file for comment.module
Code
function comment_activity_grants($activity) {
$grants = array();
if (!empty($activity->nid)) {
// tell activity to record 'comment' | nid
$grants = array(
'comment' => array(
$activity->nid,
),
);
}
return $grants;
}