Add bulk generate URL alias via pathauto function

If you have access to your own module you can add a hook_cron function with the following code. On each cron it will execute the bulk generation for nodes

<?php
function feed_control_cron(){
   
   
//If you want to change the number of nodes to change
   
variable_set('pathauto_max_bulk_update', 1000);
   
   
//include the .inc files of pathauto
   
_pathauto_include();

   
//Executes the generation of URL aliases for nodes
   
node_pathauto_bulkupdate();
}
?>

Other solutions: http://drupal.org/node/236304

Knowledge keywords: