You are here

function _feedapi_drush_get_nid in FeedAPI 6

1 call to _feedapi_drush_get_nid()
feedapi_drush_refresh in ./feedapi.drush.inc
Refreshes a feed. When the feed URL is not enough to exactly define a feed, use the nid

File

./feedapi.drush.inc, line 115
Drush commands for FeedAPI.

Code

function _feedapi_drush_get_nid($feed) {
  if (valid_url($feed, TRUE) || strpos($feed, '://')) {
    return db_result(db_query("SELECT nid FROM {feedapi} WHERE url = '%s'", $feed));
  }
  return $feed;
}