You are here

function flag_rules_condition_flagged_label in Flag 6

Same name and namespace in other branches
  1. 6.2 includes/flag.rules_forms.inc \flag_rules_condition_flagged_label()
1 string reference to 'flag_rules_condition_flagged_label'
flag_rules_condition_info in includes/flag.rules.inc
Implementation of hook_rules_condition_info().

File

includes/flag.rules_forms.inc, line 89
flag.rules_form.inc Rules integration for the Flag module.

Code

function flag_rules_condition_flagged_label($settings, $argument_labels, $element) {
  $flag = rules_get_element_variable($element, 'flag');
  return t('Flag "@flag-title" is flagged, for @object', array(
    '@flag-title' => $flag
      ->get_title(),
  ) + $argument_labels);
}