function rules_condition_content_is_type_label in Rules 6
Some label callbacks for the conditions
Related topics
File
- rules/
modules/ node.rules_forms.inc, line 28 - Rules configuration forms for the node module
Code
function rules_condition_content_is_type_label($settings, $argument_labels) {
$names = array_intersect_key(node_get_types('names'), $settings['type']);
return t('@node is @type', $argument_labels + array(
'@type' => implode(' ' . t('or') . ' ', $names),
));
}