function rules_admin_add_component_submit

Final submit callback for adding a component.

File

rules_admin/rules_admin.inc, line 429

Code

function rules_admin_add_component_submit($form, &$form_state) {
    $rules_config = $form_state['rules_config'];
    $rules_config->form_submit($form, $form_state);
    drupal_set_message(t('Your changes have been saved.'));
    $form_state['redirect'] = RulesPluginUI::path($rules_config->name);
}