You are here

function rules_core_node_label_callback in Rules 6

Label callback for the node core actions

Related topics

1 string reference to 'rules_core_node_label_callback'
node_rules_action_info_alter in rules/modules/node.rules.inc
Implementation of hook_rules_action_info_alter().

File

rules/modules/node.rules_forms.inc, line 110
Rules configuration forms for the node module

Code

function rules_core_node_label_callback($settings, $argument_labels, &$element) {
  if (!isset($element['#info']['label_skeleton'])) {
    $element['#info']['label_skeleton'] = str_replace(t('content'), '@node', $element['#info']['label']);
  }
  return t($element['#info']['label_skeleton'], $argument_labels);
}