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.
After installing node_export the VBO action was not showing even though there was a hook_action_info() call. In looking at the code I noticed a small error on line 264 where it checks the selected formats. Patch to follow.
Comment | File | Size | Author |
---|---|---|---|
#1 | node_export-vbo_action_missing-2023303-1.patch | 689 bytes | joel_osc |
Comments
Comment #1
joel_osc CreditAttribution: joel_osc commentedHere is a one liner patch.
Comment #2
joel_osc CreditAttribution: joel_osc commentedSetting to needs review.
Comment #3
lauranwv CreditAttribution: lauranwv commentedHaving same issue, Joel. I'm a developer plebeian. Could you please provide some specifics as to which module file this patch should be pasted into? It's not apparent to me.
Comment #4
joel_osc CreditAttribution: joel_osc commentedThe patch file is good for providing this info:
This patch file indicates the node_export.module file is the one requiring patching and then shows the one line which was removed (-) and then the line which was added (+) in its place. You can go here to see how to apply a patch: http://drupal.org/patch/apply.
You may need to flush caches after this is done, then re-edit your view and the action should now be available in the Bulk Operations field. If you don't know how to flush caches I would install the devel module - it is most helpful.
Cheers.
Comment #5
bjcullinan CreditAttribution: bjcullinan commentedThis is a perfect example of why Drupal is the most awful software ever. Why isn't this patch implemented in the latest version?
Comment #6
rossb89 CreditAttribution: rossb89 commentedJust ran into this issue myself, patch applies cleanly against latest version, and solves the issue.
Comment #7
rossb89 CreditAttribution: rossb89 commentedComment #8
joel_osc CreditAttribution: joel_osc commentedJust an FYI if anyone else runs into this... you need the 3.x-dev version which is not shown on the project page. Just use: "drush dl node_export-3.x-dev" and then apply the patch. It would be great if this could get committed and a new rev of node_export released.
Comment #9
MmMnRr CreditAttribution: MmMnRr commentedHi everyone,
I had the same issue and I solved it by saving the "admin/config/content/node_export" preferences with the "Drupal var export" option checked. Although this option is checked by default, it seems that VBO action only appears when we force to save the Node Export preferences.
After saving, I reconfigured my view and then added the corresponding VBO field.
I used the node_export-7.x-3.0 version.
I also had to apply patch from this issue (comment #33) in order to make VBO Node Export Action to work. This VBO Action did not work for large amounts of data (nodes).
Comment #10
SchwebDesign CreditAttribution: SchwebDesign commentedthe patch #1 as well as comment #9 worked for me as well!!
please commit this?
Comment #12
danielb CreditAttribution: danielb commentedComment #13
AnticoVeneziano CreditAttribution: AnticoVeneziano commentedcomment #9 worked fine WITHOUT apply the patch.
Comment #14
petednz CreditAttribution: petednz commentedHoping someone here can give me a nudge in the right direction. Site has latest Drupal 7, Node Export, Views and VBO.
I have 'saved' the Node Export config page as suggested even though vars was the selected option.
In the 'configure field: Bulk Operations' I can see and select "Node export (Drupal var export)"
But once the view is saved there is no action for Node Export under Operations.
Site is running Domain and a lot of other modules so it could be some conflict.
I have flushed caches, brewed tea, googled further, still stuck. Appreciate any pointers
Comment #15
joel_osc CreditAttribution: joel_osc commentedHave you tried enabling devel and placing a dpm at the line of code prior to the 'if' statement referred to in this patch? At least this would tell you if it is the same problem or a new one. Cheers.
Comment #16
luke.stewart CreditAttribution: luke.stewart commentedI don't think this is due to this problem. Control is passing into the if statement.
The function is returning an array with five elements each of which take the form of below.