It is usefull to be able to override action configuration form title as curreте one does not always soound good. You can adв following code
$title_callback = $operation['callback'].'_title';
if (function_exists($title_callback)) {
$title = call_user_func(
$title_callback,
array(
'view' => $plugin->view,
'selection' => array_filter($form_state['storage'][VIEWS_BULK_OPS_STEP_VIEW]['objects']['selection']),
'settings' => $plugin->get_operation_settings($operation)));
drupal_set_title($title);
}
else {
drupal_set_title(t('Set parameters for \'%action\'', array('%action' => $operation['label'])));
}
in function views_bulk_operations_form in VIEWS_BULK_OPS_STEP_CONFIG processing section. Developer will be able to define function to provide title or default one will be used.
Comments
Comment #1
infojunkieVBO 6.x-1.10-beta2 and above support both Views 2.x and 3.x.
Comment #2
bojanz commentedA drupal_set_title() inside a hook_form_alter() will do the trick and work for both actions and rules, instead of extending the Action API with another undocumented key.