You are here

function commentactivity_activityapi in Activity 6

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

Implementation of hook_activityapi().

File

contrib/commentactivity/commentactivity.module, line 47

Code

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