You are here

function aggregator_admin_remove_feed in Drupal 7

Same name and namespace in other branches
  1. 4 modules/aggregator.module \aggregator_admin_remove_feed()
  2. 5 modules/aggregator/aggregator.module \aggregator_admin_remove_feed()
  3. 6 modules/aggregator/aggregator.admin.inc \aggregator_admin_remove_feed()

Deletes a feed.

Parameters

$feed: An associative array describing the feed to be cleared.

See also

aggregator_admin_remove_feed_submit()

1 string reference to 'aggregator_admin_remove_feed'
aggregator_menu in modules/aggregator/aggregator.module
Implements hook_menu().

File

modules/aggregator/aggregator.admin.inc, line 217
Administration page callbacks for the Aggregator module.

Code

function aggregator_admin_remove_feed($form, $form_state, $feed) {
  return confirm_form(array(
    'feed' => array(
      '#type' => 'value',
      '#value' => $feed,
    ),
  ), t('Are you sure you want to remove all items from the feed %feed?', array(
    '%feed' => $feed->title,
  )), 'admin/config/services/aggregator', t('This action cannot be undone.'), t('Remove items'), t('Cancel'));
}