I have this code (it's very similar as the hooks for node in pathauto source):

foreach ($languages as $lang_code => $lang_name) {
pathauto_create_alias('test', $op, $source, $data, $type, $lang_code);
}

My site has 2 languages (english and spanish).

That code only works if $op = 'insert', then it creates 3 aliases (english, spanish and all).

If $op equals 'update' or 'bulkupdate' it only creates or updates one language (always spanish) and I don't know why it's that. I know for sure that it loops 3 times because I set a "drupal_set_message" to check it out.

Help please!!

CommentFileSizeAuthor
#1 pauhauto_ml_url_pattern.patch1.03 KBganesh_87
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ganesh_87’s picture

Issue summary: View changes
FileSize
1.03 KB

Hello,

We faced the similar issue with path auto in update or bulk i update i have debugged the path auto module and fixed the issue, please find the attached patch for more reference.

in case of update and update the code is skipping the update alias in the pautoauto module i have removed it for this purpose, please try and let me know.