function comment_load_activity_context in Activity 6.2
Load up the context array to pass to activity_record.
Parameters
string $hook: The hook that is being fired.
string $op: The op for that hook.
string $id: The id for the action.
Return value
array The context array for activity_record.
See also
trigger_comment
1 string reference to 'comment_load_activity_context'
File
- modules/
comment.activity.inc, line 144 - Activity definition file for comment.module
Code
function comment_load_activity_context($hook, $op, $id) {
$comment = _comment_load($id);
$context = array();
if (!empty($comment)) {
$context = array(
'hook' => $hook,
'op' => $op,
'comment' => $comment,
);
}
return $context;
}