You are here

function feedapi_load_node in FeedAPI 5

Same name and namespace in other branches
  1. 6 feedapi.module \feedapi_load_node()

Load node by URL.

Parameters

$args: Currently only supported $args['url] - URL string.

Return value

Node object if successful, FALSE if not.

File

./feedapi.module, line 858
Handle the submodules (for feed and item processing) Provide a basic management of feeds

Code

function feedapi_load_node($args) {
  if ($nid = db_result(db_query("SELECT nid FROM {feedapi} WHERE url = '%s'", $args['url']))) {
    return node_load($nid);
  }
  return FALSE;
}