Quantcast
Channel: Active questions tagged feeds - Drupal Answers
Viewing all articles
Browse latest Browse all 185

Execute Drupal Feeds Import Programatically - Where to put code

$
0
0

I found this code for executing feeds importers programatically:

<?php// Define the id (machine name) of the importer you want to use.$importer_id = 'my_feeds_importer';// Load the Feeds Source object.$source = feeds_source($importer_id);// Override configurations... (more on that in a moment)// Execute the import.$source->startImport();?>

I'm just not sure where this code is supposed to go (I'm still pretty green when it comes to Drupal!).


Viewing all articles
Browse latest Browse all 185

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>