You are here

function feedapi_purge_confirm in FeedAPI 6

Same name and namespace in other branches
  1. 5 feedapi.module \feedapi_purge_confirm()

Ask for confirmation before deleting all the items

1 string reference to 'feedapi_purge_confirm'
_feedapi_invoke_purge in ./feedapi.module
Helper function for feedapi_invoke(). Delete all feed items of a feed.

File

./feedapi.module, line 300
Handle the submodules (for feed and item processing) Provide a basic management of feeds

Code

function feedapi_purge_confirm($form_state, $node) {
  $output = confirm_form(array(
    'nid' => array(
      '#type' => 'hidden',
      '#value' => $node->nid,
    ),
  ), t('Delete all the feed items from !name', array(
    '!name' => $node->title,
  )), isset($_GET['destination']) ? $_GET['destination'] : 'node/' . $node->nid, t("Are you sure you want to delete all the feed items from !name?", array(
    '!name' => $node->title,
  )), t('Yes'), t('No'), 'feedapi_purge_confirm');
  return $output;
}