You are here

function favorite_nodesactivity_activityapi in Activity 6

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

Implementation of hook_activityapi().

File

contrib/favorite_nodesactivity/favorite_nodesactivity.module, line 36

Code

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