You are here

function flag_comment::get_relevant_action_objects in Flag 5

Same name and namespace in other branches
  1. 6.2 flag.inc \flag_comment::get_relevant_action_objects()
  2. 6 flag.inc \flag_comment::get_relevant_action_objects()
  3. 7.3 includes/flag/flag_comment.inc \flag_comment::get_relevant_action_objects()
  4. 7.2 flag.inc \flag_comment::get_relevant_action_objects()

File

./flag.inc, line 1040
Implements various flags. Uses object oriented style inspired by that of Views 2.

Class

flag_comment
Implements a comment flag.

Code

function get_relevant_action_objects($content_id) {
  $comment = $this
    ->fetch_content($content_id);
  return array(
    'comment' => $comment,
    'node' => node_load($comment->nid),
  );
}