You are here

function flag_rules_action_unflag in Flag 6.2

Same name and namespace in other branches
  1. 6 includes/flag.rules.inc \flag_rules_action_unflag()
  2. 7.3 flag.rules.inc \flag_rules_action_unflag()
  3. 7.2 flag.rules.inc \flag_rules_action_unflag()

Base action implementation: Unflag.

1 string reference to 'flag_rules_action_unflag'
flag_rules_action_info in includes/flag.rules.inc
Implementation of hook_rules_action_info().

File

includes/flag.rules.inc, line 249
Rules integration for the Flag module.

Code

function flag_rules_action_unflag($flag, $object, $flagging_user, $settings) {
  $flag
    ->flag('unflag', $flag
    ->get_content_id($object), $flagging_user, !$settings['permission_check']);
}