You are here

function flag_rules_action_fetch_overall_flag_count in Flag 7.3

Base action implementation: Fetch overall count for a particular flag.

The count that is returned during a flagging or an unflagging will take into account the current flag/unflag process.

1 string reference to 'flag_rules_action_fetch_overall_flag_count'
flag_rules_action_info in ./flag.rules.inc
Implements hook_rules_action_info().

File

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

Code

function flag_rules_action_fetch_overall_flag_count($flag) {
  $count = flag_get_flag_counts($flag->name);
  return array(
    'overall_flag_count' => $count,
  );
}