function flagactivity_activityapi in Activity 6
Same name and namespace in other branches
- 5.4 contrib/flagactivity/flagactivity.module \flagactivity_activityapi()
Implementation of hook_activityapi().
File
- contrib/
flagactivity/ flagactivity.module, line 34
Code
function flagactivity_activityapi(&$activity, $op) {
if ($op == 'load') {
if ($activity['data']['module'] == 'flagactivity' && ($data['content-type'] == 'node' || $data['content-type'] == 'comment')) {
if (!node_access('view', node_load($activity['data']['node-id']))) {
$activity = array();
}
}
}
}