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.
The views_bulk_operations_config_form()
function (which creates the configuration form for VBO actions) sets the page title to "Set parameters for %operation". (http://cgit.drupalcode.org/views_bulk_operations/tree/views_bulk_operati...)
This does not work when the VBO is on a Views "Page" display. The Views module makes a second call to drupal_set_title()
AFTER the views_bulk_operations_config_form()
function runs, replacing the title with the title of the View.
Comments
Comment #2
m.stentaComment #3
m.stentaUpdate: this does not work after all. See next comment.
FYI: I was able to hack this with a custom module using the following implementation of
hook_views_bulk_operations_form_alter()
:Comment #4
m.stentaActually, upon further testing, the code in #3 above does not work. Well, it does - but only if you refresh the config form page itself (resubmitting form data). It does not work to fix the title on the initial page load. I was testing by refreshing the config form page so I missed that.