You are here

function feed_import_delete_feed_form in Feed Import 7

Same name and namespace in other branches
  1. 7.3 feed_import.module \feed_import_delete_feed_form()
  2. 7.2 feed_import.module \feed_import_delete_feed_form()

Feed delete form

1 string reference to 'feed_import_delete_feed_form'
feed_import_menu in ./feed_import.module
Implements hook_menu().

File

./feed_import.module, line 736
User interface, cron functions for feed_import module

Code

function feed_import_delete_feed_form($form, &$form_state, $id = 0) {
  if (!$id) {
    drupal_set_message(t("Feed doesn't exist!"), 'error');
    drupal_goto(FEED_IMPORT_PATH);
    return;
  }
  $form['id'] = array(
    '#type' => 'value',
    '#value' => $id,
  );
  return confirm_form($form, t('This action cannot be undone!'), FEED_IMPORT_PATH);
}