After enabling VBO, those options (promote,publish, etc) disappear and all that is left is an empty select box. However, vbo works perfect. A notice: with an older version of ctools I used, vbo didn't work neither. It just acted like everything worked fine, but no operation was commited. With the latest version of ctools installed, vbo works.

Comments

bojanz’s picture

Yes, VBO needs absolutely latest Views and ctools.

Reproduced the bug you're reporting. Will investigate.

bojanz’s picture

Status: Active » Fixed

This was due to the extremely crappy way hook_node_operations() works, where node's implementation of that hook is in an include (node.admin.inc) which isn't loaded when VBO is running.
So, VBO looks for hook implementations, that file isn't loaded, it doesn't find any. Then module_implements() caches what VBO did and next time you load the node page, there's nothing there.

Fixed by removing all support for hook_node_operations() and hook_user_operations() from VBO. The implementations and the way we used them were hacky and unnecessary. We don't need anything that assumes one single entity type.

And nothing of value was actually lost in this case since nothing from hook_node_operations() is used in the VBO Content view (drupal has matching core actions).
For the Users view, the block / unblock actions were used from hook_user_operations(). Made it use the matching drupal core action for blocking. Funny enough, there's no action for unblocking, so that will have to be written if someone complains.

Status: Fixed » Closed (fixed)

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

danielb’s picture

holy crap bojanz, that was a rather massive change performed rather quietly, suddenly all my modules' VBO support disappeared ...

bojanz’s picture

And yet it took 3 months for anybody to notice :) I guess the problem is that not enough people read the release notes.