The update callback is set to 'user_pathauto_bulk_update_batch_process' for all entity types and also references an nonexistent file.

Comments

juampynr’s picture

Title: Bulk update doesn't actually work at all » Add support for Bulk update path aliases
Status: Active » Needs review
StatusFileSize
new3.96 KB

Here is a patch that adds Bulk update support for custom entities.

For deleting aliases, the custom entities should declare hook_path_alias_types() in order to add there their custom patterns to be then searched and deleted in the database.

kimwes’s picture

Patch in #1 didn't work for me because there was incorrect usage of array_slice and entity_load. Here's a rerolled patch from #1 where these problems are fixed. Otherwise patch seemed to work correctly.

diwant’s picture

Status: Needs review » Reviewed & tested by the community

Tried #2, works. Thanks kimwes and juampy.

Renee S’s picture

Confirmed, this works for me also. Thanks so much! (Note: It did bork on Field Collections, and I hadn't set an alias pattern; I don't want them aliased anyway...)

maciej.zgadzaj’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Fixed

This has been merged into Pathauto Entity in my sandbox (a fork of this module).

Should we mark it as fixed here then?

Status: Fixed » Closed (fixed)

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