You are here

function rules_admin_save_element_label in Rules 6

Saves the element label.

2 calls to rules_admin_save_element_label()
rules_admin_form_edit_action_submit in rules_admin/rules_admin.rule_forms.inc
rules_admin_form_edit_condition_submit in rules_admin/rules_admin.rule_forms.inc
Apply the changes to the element

File

rules_admin/rules_admin.rule_forms.inc, line 967

Code

function rules_admin_save_element_label($form, &$form_state, &$element) {
  $info = _rules_admin_get_label($form_state, rules_get_element_info($element), $element, $form_state['values']['label'], TRUE);
  $element['#info'] = $info + $element['#info'];
}