I see recipes for doing a bulk update from a simple PHP page:

include_once './includes/bootstrap.inc';
include_once './sites/all/modules/pathauto/pathauto.inc';
include_once './sites/all/modules/pathauto/pathauto_node.inc';
 
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
 
_pathauto_include();
// variable_set('pathauto_max_bulk_update', 5000);
node_pathauto_bulkupdate();

but how can I from my own module (D7)?

Thanks!

Comments

tsvenson’s picture

Assigned: Unassigned » dave reid
grendzy’s picture

Status: Active » Fixed
pathauto_node_update_alias_multiple($nids, 'bulkupdate');

Automatically closed -- issue fixed for 2 weeks with no activity.