You are here

function aggregator_admin_refresh_feed in Drupal 6

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

Menu callback; refreshes a feed, then redirects to the overview page.

Parameters

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

1 string reference to 'aggregator_admin_refresh_feed'
aggregator_menu in modules/aggregator/aggregator.module
Implementation of hook_menu().

File

modules/aggregator/aggregator.admin.inc, line 219
Admin page callbacks for the aggregator module.

Code

function aggregator_admin_refresh_feed($feed) {
  if (!isset($_GET['token']) || !drupal_valid_token($_GET['token'], 'aggregator/update/' . $feed['fid'])) {
    return drupal_access_denied();
  }
  aggregator_refresh($feed);
  drupal_goto('admin/content/aggregator');
}