function feedapi_drush_create in FeedAPI 6
Creates a feed
Parameters
$url:
1 string reference to 'feedapi_drush_create'
- feedapi_drush_command in ./
feedapi.drush.inc - Implementation of hook_drush_command().
File
- ./
feedapi.drush.inc, line 72 - Drush commands for FeedAPI.
Code
function feedapi_drush_create($url) {
$node_template = new stdClass();
$node_template->type = drush_get_option('type') ? drush_get_option('type') : 'feed';
feedapi_create_node($node_template, $url);
}