You are here

function flag_flag::get_relevant_action_objects in Flag 5

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

Returns objects the action may possibly need. This method should return at least the 'primary' object the action operates on.

This method is needed because get_valid_actions() returns actions that don't necessarily operate on an object of a type this flag manages. For example, flagging a comment may trigger an 'Unpublish post' action on a node; So the comment flag needs to tell the action about some node.

Derived classes must implement this.

@abstract

File

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

Class

flag_flag
This abstract class represents a flag, or, in Views 2 terminology, "a handler".

Code

function get_relevant_action_objects($content_id) {
  return array();
}