Drupal: Running Feeds Importer Programatically - Where to Put Code -
when running feeds importer using cron, importer times out resulting in incomplete import. i'm trying use script execute importer , i've come across code few times:
<?php function module_name_cron() { $name = 'feed_name'; $source = feeds_source($name); $source->import(); } ?>
however, when executing error saying there's no feeds_source() function, leads me believe don't know put code (a separate php file isn't working me). can me out here? in advance!
i think need call $source->startimport();
method instaed of $source->import();
Comments
Post a Comment