You are here

protected function flag_flag::invoke_rules_event in Flag 7.3

Invoke a Rules event in reaction to a flagging or unflagging.

Parameters

$action: Either 'flag' or 'unflag'.

$flagging: The flagging entity that is either newly created or about to be deleted.

$entity_id: The entity ID of entity being flagged or unflagged.

$account: The account performing the action.

2 calls to flag_flag::invoke_rules_event()
flag_flag::flagging_delete in includes/flag/flag_flag.inc
Unflag an entity by deleting a Flagging.
flag_flag::flagging_insert in includes/flag/flag_flag.inc
Create a new Flagging to flag an entity.
1 method overrides flag_flag::invoke_rules_event()
flag_entity::invoke_rules_event in includes/flag/flag_entity.inc
Invoke a Rules event in reaction to a flagging or unflagging.

File

includes/flag/flag_flag.inc, line 951
Contains the flag_flag class. Flag type classes use an 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

protected function invoke_rules_event($action, $flagging, $entity_id, $account) {

  // We only support flags on entities: do nothing in this class.
  // See flag_entity::invoke_rules_event().
  return;
}