function feedapi_drush_refresh in FeedAPI 6
Refreshes a feed. When the feed URL is not enough to exactly define a feed, use the nid
Parameters
$feed: URL or nid
1 string reference to 'feedapi_drush_refresh'
- feedapi_drush_command in ./
feedapi.drush.inc - Implementation of hook_drush_command().
File
- ./
feedapi.drush.inc, line 85 - Drush commands for FeedAPI.
Code
function feedapi_drush_refresh($feed) {
$nid = _feedapi_drush_get_nid($feed);
if (is_numeric($nid)) {
$node = node_load(array(
'nid' => $nid,
));
feedapi_invoke('refresh', $node->feed, FALSE);
}
}