function aggregator_admin_refresh_feed

Page callback: Refreshes a feed, then redirects to the overview page.

Parameters

$feed: An object describing the feed to be refreshed.

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

File

drupal/modules/aggregator/aggregator.admin.inc, line 407
Administration 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 MENU_ACCESS_DENIED;
  }
  aggregator_refresh($feed);
  drupal_goto('admin/config/services/aggregator');
}