function flag_rules_action_trim_label in Flag 6
Same name and namespace in other branches
- 6.2 includes/flag.rules_forms.inc \flag_rules_action_trim_label()
File
- includes/
flag.rules_forms.inc, line 45 - flag.rules_form.inc Rules integration for the Flag module.
Code
function flag_rules_action_trim_label($settings, $argument_labels, $element) {
$flag = rules_get_element_variable($element, 'flag');
return t('Trim "@flag-title" at @size', array(
'@flag-title' => $flag
->get_title(),
'@size' => $settings['cutoff_size'],
));
}