Skip to main content
5 events
when toggle format what by license comment
Nov 1, 2014 at 10:32 comment added Robin Sasha, this has nothing to do with drupal... it's just basic programming. Extract the functionality that you want to call in your hook_cron and wrap it in a function so that you can call that function in hook_cron.
Nov 1, 2014 at 10:21 comment added Sasha unfortunately it is really not clear to me. Am not that much experienced Drupal-coder. Could you please re-write the whole module given above, so that I could try?
Nov 1, 2014 at 9:28 comment added Robin Then you have to put your code in a new function: function iterate_data($matches){...} This way you can call only the iteration in your cron.
Nov 1, 2014 at 9:24 comment added Sasha I know I have to use hook_cron, but as explained in the task I don't know how to apply it in this particular case. The suggested by you way will trigger the whole module per cron run. And I need to iterate foreach ($matches[0] as $match) { through cron job.
Nov 1, 2014 at 8:59 history answered Robin CC BY-SA 3.0