function flag_rules_condition_flagged in Flag 7.3
Same name and namespace in other branches
- 6.2 includes/flag.rules.inc \flag_rules_condition_flagged()
- 6 includes/flag.rules.inc \flag_rules_condition_flagged()
- 7.2 flag.rules.inc \flag_rules_condition_flagged()
Condition: Flag is flagged.
1 string reference to 'flag_rules_condition_flagged'
- flag_rules_condition_info in ./
flag.rules.inc - Implements hook_rules_condition_info().
File
- ./
flag.rules.inc, line 609 - Rules integration for the Flag module.
Code
function flag_rules_condition_flagged($flag, $entity, $account) {
return $flag
->is_flagged($flag
->get_entity_id($entity), $account->uid);
}