You are here

function flag_entity::get_relevant_action_objects in Flag 7.2

Same name and namespace in other branches
  1. 7.3 includes/flag/flag_entity.inc \flag_entity::get_relevant_action_objects()

Returns objects the action may possible need.

2 methods override flag_entity::get_relevant_action_objects()
flag_comment::get_relevant_action_objects in ./flag.inc
Returns objects the action may possible need.
flag_user::get_relevant_action_objects in ./flag.inc
Returns objects the action may possible need.

File

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

Class

flag_entity
Base entity flag handler.

Code

function get_relevant_action_objects($content_id) {
  return array(
    $this->content_type => $this
      ->fetch_content($content_id),
  );
}