You are here

function feeds_import_tab_form_submit in Feeds 7.2

Same name and namespace in other branches
  1. 8.2 feeds.pages.inc \feeds_import_tab_form_submit()
  2. 6 feeds.pages.inc \feeds_import_tab_form_submit()
  3. 7 feeds.pages.inc \feeds_import_tab_form_submit()

Submit handler for feeds_import_tab_form().

File

./feeds.pages.inc, line 218
Menu callbacks, form callbacks and helpers.

Code

function feeds_import_tab_form_submit($form, &$form_state) {
  $form_state['redirect'] = $form['#redirect'];
  $source = feeds_source($form['#importer_id'], $form['#feed_nid']);
  $source
    ->startImport();
  $source
    ->ensureSchedule();
  if ($source->importer->config['process_in_background']) {
    drupal_set_message(t('Import scheduled.'));
  }
}