You are here

function flag_comment::get_relevant_action_objects in Flag 7.3

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

Returns objects the action may possible need.

Overrides flag_entity::get_relevant_action_objects

File

includes/flag/flag_comment.inc, line 174
Contains the flag_comment class.

Class

flag_comment
Implements a comment flag.

Code

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