You are here

function _rules_element_set_label in Rules 6

2 calls to _rules_element_set_label()
rules_use_action in rules/rules.module
Configures an action for using in a rule
rules_use_condition in rules/rules.module
Configures a condition for using in a rule

File

rules/rules.module, line 664
Rules engine module

Code

function _rules_element_set_label($element, $label = NULL) {
  if (!empty($element['#info'])) {
    $info = isset($label) ? array(
      'label' => $label,
    ) : array();
    $element['#info'] = $info + $element['#info'];
  }
  return $element;
}