function flag_rules_action_fetch_user_flag_count in Flag 7.3
Base action implementation: Fetch user's flag count.
During a flagging, the current flagging will be included in the count. During an unflagging, the current flagging will not yet have been removed from the count.
1 string reference to 'flag_rules_action_fetch_user_flag_count'
- flag_rules_action_info in ./
flag.rules.inc - Implements hook_rules_action_info().
File
- ./
flag.rules.inc, line 496 - Rules integration for the Flag module.
Code
function flag_rules_action_fetch_user_flag_count($flag, $user) {
$count = flag_get_user_flag_counts($flag, $user);
return array(
'user_flag_count' => $count,
);
}