You are here

function nodeactivity_activityapi in Activity 6

Same name and namespace in other branches
  1. 5.4 contrib/nodeactivity/nodeactivity.module \nodeactivity_activityapi()

Implementation of hook_activityapi().

File

contrib/nodeactivity/nodeactivity.module, line 35

Code

function nodeactivity_activityapi(&$activity, $op) {
  if ($op == 'load') {
    if ($activity['data']['module'] == 'nodeactivity' && !node_access('view', node_load($activity['data']['node-id']))) {
      $activity = array();
    }
  }
}