You are here

function aggregator_admin_refresh_feed in Drupal 7

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. 6 modules/aggregator/aggregator.admin.inc \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 modules/aggregator/aggregator.module
Implements hook_menu().

File

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');
}