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.
Views Bulk Operations no longer uses hook_node_operations()/hook_user_operations() and instead relies on hook_action_info() to provide it's bulk actions.
Comment | File | Size | Author |
---|---|---|---|
#12 | pathauto_action_info-12.patch | 1.54 KB | Les Lim |
#9 | pathauto_action_info-5.patch | 1.78 KB | marvil07 |
#5 | pathauto_action_info-5.patch | 1.79 KB | Les Lim |
#2 | pathauto_action_info.patch | 1.27 KB | Les Lim |
Comments
Comment #1
aidanlis CreditAttribution: aidanlis commentedSubscribe.
Comment #2
Les LimHere's a start.
Comment #3
Valeratal CreditAttribution: Valeratal commentedsubscribe
Comment #4
Les LimValeratal, you don't need to comment to subscribe anymore. Instead, click the "Follow" button.
Comment #5
Les LimNew patch to add an "Update taxonomy term alias" action. Also fixed a variable name mismatch from the previous patch.
Comment #6
jtbayly CreditAttribution: jtbayly commentedI used it, and it worked like a charm on nodes.
Comment #7
makara CreditAttribution: makara commentedI think it would be cool to also have a trigger when a path alias got created or updated. I.e.
hook_trigger_info()
andactions_do()
etc.Comment #8
marvil07 CreditAttribution: marvil07 commentedworks fine, thanks!
Comment #9
marvil07 CreditAttribution: marvil07 commentedbtw here a trivial change without the unneeded spaces
Comment #10
HnLn CreditAttribution: HnLn commentedpatch from #9 works for me
Comment #11
Dave ReidUnnecessary documentation.
I'm wondering why we should provide the specific 'triggers' for each action when they are already run by pathauto_node_insert|update, etc?
Comment #12
Les LimNew patch without the VBO documentation note and the redundant triggers.
Comment #13
Dave ReidIf we're setting 'message' => TRUE, then how will this work if a user runs a VBO of path updates for 100 nodes at once?
Comment #14
Les LimIt's exactly the same callback arguments that are in
pathauto_node_operations()
. Looking atpathauto_node_update_alias_multiple()
, the message is created outside the foreach loop and gives this summary:If VBO is batching, you'll probably get a message for each batch, I'm guessing, but that's not so bad.
Comment #15
JonMcL CreditAttribution: JonMcL commentedTested #12 and working for me. Updated 203 nodes.
Comment #16
casey CreditAttribution: casey commentedWorks perfectly + I only see a single message after running a batch (tested on ~10000 items)
Comment #17
kalis1#12 works well for me too ! Thank you !
Comment #18
Dave ReidThanks! Committed #12 to Git witha a couple of modifications to 7.x-1.x.
http://drupalcode.org/project/pathauto.git/commit/e15a16a
Comment #20
szy CreditAttribution: szy commentedThe patch was applied with success, but I cannot see
option 'Update taxonomy term alias' in VBO term views.
Do you have an idea why?
Is it working fine in your views?
Thanks.
Szy.
Comment #21
szy CreditAttribution: szy commentedComment #22
Dave ReidNote that this was *only* committed to the Drupal 7 version of Pathauto and the patch was not intended to be applied to the Drupal 6 version at all. It does make sense to properly backport this.
Comment #23
Dave ReidBackported the hook_action_info() integration to 6.x-2.x and committed to Git: http://drupalcode.org/project/pathauto.git/commit/05f1d48. Tested a node, user, and term VBO view in Drupal 6 and they're working as expected. This will be included in the next official release, or in the 6.x-2.x-dev release after about 12 hours.