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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -