You are here

function feeds_import_tab_form in Feeds 6

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

Render a feeds import form on node/id/import pages.

1 string reference to 'feeds_import_tab_form'
feeds_menu in ./feeds.module
Implementation of hook_menu().

File

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

Code

function feeds_import_tab_form(&$form_state, $node) {
  $importer_id = feeds_get_importer_id($node->type);
  $form = array();
  $form['#feed_nid'] = $node->nid;
  $form['#importer_id'] = $importer_id;
  $form['#redirect'] = 'node/' . $node->nid;
  return confirm_form($form, t('Import all content from feed?'), 'node/' . $node->nid, '', t('Import'), t('Cancel'), 'confirm feeds update');
}