You are here

function node_activity_grants in Activity 7

Same name and namespace in other branches
  1. 6.2 modules/node.activity.inc \node_activity_grants()

Implementation of hook_activity_grants().

File

modules/node.activity.inc, line 11
Provides Activity integration for the node module.

Code

function node_activity_grants($activity) {
  $grants = array();
  if (!empty($activity->nid)) {
    $grants = array(
      'node_author' => array(
        $activity->nid,
      ),
    );
  }
  return $grants;
}