You are here

function feeds_ui_plugin_form_submit in Feeds 7.2

Same name and namespace in other branches
  1. 8.2 feeds_ui/feeds_ui.admin.inc \feeds_ui_plugin_form_submit()
  2. 6 feeds_ui/feeds_ui.admin.inc \feeds_ui_plugin_form_submit()
  3. 7 feeds_ui/feeds_ui.admin.inc \feeds_ui_plugin_form_submit()

Submit handler for feeds_ui_plugin_form().

File

feeds_ui/feeds_ui.admin.inc, line 461
Contains all page callbacks, forms and theming functions for Feeds administrative pages.

Code

function feeds_ui_plugin_form_submit($form, &$form_state) {

  // Set the plugin and save feed.
  $importer = feeds_importer($form['#importer']);
  $importer
    ->setPlugin($form_state['values']['plugin_key']);
  $importer
    ->save();
  drupal_set_message(t('Changed @type plugin.', array(
    '@type' => $form['#plugin_type'],
  )));
}