function feedapi_load_node in FeedAPI 6
Same name and namespace in other branches
- 5 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 876 - 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;
}