Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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!!
Comment | File | Size | Author |
---|---|---|---|
#1 | pauhauto_ml_url_pattern.patch | 1.03 KB | ganesh_87 |
Comments
Comment #1
ganesh_87 CreditAttribution: ganesh_87 commentedHello,
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.