Closed (fixed)
Project:
Pathauto
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
15 Jun 2011 at 22:49 UTC
Updated:
20 Sep 2012 at 14:21 UTC
Jump to comment: Most recent file
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 commentedSubscribe.
Comment #2
les limHere's a start.
Comment #3
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 commentedI used it, and it worked like a charm on nodes.
Comment #7
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 commentedworks fine, thanks!
Comment #9
marvil07 commentedbtw here a trivial change without the unneeded spaces
Comment #10
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 commentedTested #12 and working for me. Updated 203 nodes.
Comment #16
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 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 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.