You are here

function feeds_ui_delete_form_submit in Feeds 8.2

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

Submit handler for feeds_ui_delete_form().

File

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

Code

function feeds_ui_delete_form_submit($form, &$form_state) {
  $form_state['redirect'] = 'admin/structure/feeds';

  // Remove importer.
  feeds_importer($form['#importer'])
    ->delete();

  // Clear cache, deleting a configuration may have an affect on menu tree.
  feeds_cache_clear();
}