I've been looking for a way to re-check the CSV file on my FTP after I have successfully imported it. I had hoped that there could be a way by setting up my cron on my server and updating Drupal's cron.php to include a script to basically re-process the original file. Someone has already mentioned on another thread that they added the following to cron.php and then setup a cron job on their server to process cron.php every hour:
$import = _user_import_settings_select(10);
_user_import_initialise_import($import);Unfortunately, this doesn't work for me - yes, I changed the number in brackets to the ID of my saved list too. With a little fiddling, I do get a mention that the 'File has already been imported'.
Of course, I can do this manually by visiting the listed import at admin/user/user_import/add/ID and then clicking the import button again. Is there anyway of automating this process calling functions in cron.php, so it updates the same file every hour?
Thanks in advance.
Comments
Comment #1
robert castelo commentedIn User Import 7.x-2.1 have added automated import directories which imports files found in the directory using an associated import settings template.