feedapi_refresh

Versions
5 – 6
feedapi_refresh($node, $destination_path = NULL)

Refresh a feed node (= run enabled processors on it).

Parameters

$node A node object with a $node->feed object.

$destination_path If a destination path is given, function redirects to this destination.

Code

contributions/feedapi/feedapi.module, line 890

<?php
function feedapi_refresh($node, $destination_path = NULL) {
  feedapi_invoke('refresh', $node->feed, FALSE);
  if ($destination_path) {
    drupal_goto($destination_path);
  }
  else {
    drupal_goto('node/'. $node->nid);
  }
}
?>