You are here

function feeds_ui_delete_form in Feeds 7

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

Delete configuration form.

1 string reference to 'feeds_ui_delete_form'
feeds_ui_menu in feeds_ui/feeds_ui.module
Implements hook_menu().

File

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

Code

function feeds_ui_delete_form($form, &$form_state, $importer) {
  $form['#redirect'] = 'admin/structure/feeds';
  $form['#importer'] = $importer;
  if ($importer->export_type & EXPORT_IN_CODE) {
    $title = t('Would you really like to revert the importer @importer?', array(
      '@importer' => $importer->config['name'],
    ));
    $button_label = t('Revert');
  }
  else {
    $title = t('Would you really like to delete the importer @importer?', array(
      '@importer' => $importer->config['name'],
    ));
    $button_label = t('Delete');
  }
  return confirm_form($form, $title, $form['#redirect'], t('This action cannot be undone.'), $button_label);
}