You are here

function rules_ui_edit_element_submit in Rules 7.2

Submit the element configuration.

1 call to rules_ui_edit_element_submit()
rules_ui_add_reaction_rule_submit in rules_admin/rules_admin.inc
Form submit callback.
1 string reference to 'rules_ui_edit_element_submit'
rules_ui_add_element in ui/ui.forms.inc
Add a new element a rules configuration.

File

ui/ui.forms.inc, line 409
Rules User Interface forms.

Code

function rules_ui_edit_element_submit($form, &$form_state) {
  $form_state['rules_element']
    ->form_submit($form, $form_state);
  drupal_set_message(t('Your changes have been saved.'));
  if (empty($form_state['redirect'])) {
    $form_state['redirect'] = RulesPluginUI::defaultRedirect($form_state['rules_element']);
  }
}