You are here

function ogactivity_activityapi in Activity 6

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

Implementation of hook_activityapi().

File

contrib/ogactivity/ogactivity.module, line 39

Code

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