summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--views_bulk_operations.module10
1 files changed, 10 insertions, 0 deletions
diff --git a/views_bulk_operations.module b/views_bulk_operations.module
index b22bb2f..dfd3514 100644
--- a/views_bulk_operations.module
+++ b/views_bulk_operations.module
@@ -354,6 +354,11 @@ function views_bulk_operations_form($form, &$form_state, $vbo) {
$context = array(
'settings' => $operation->getAdminOption('settings', array()),
'selection' => $dummy_selection,
+ // Pass the View along. Needed by views_send 7.x-1.x.
+ // Has no performance penalty since objects are passed by reference,
+ // but needing the full views object in a core action is in most cases
+ // a sign of a wrong implementation. Do it only if you have to.
+ 'view' => $vbo->view,
);
$form += $operation->form($form, $form_state, $context);
}
@@ -432,6 +437,11 @@ function views_bulk_operations_config_form($form, &$form_state, $view, $output)
$context = array(
'settings' => $operation->getAdminOption('settings', array()),
'selection' => $form_state['selection'],
+ // Pass the View along. Needed by views_send 7.x-1.x.
+ // Has no performance penalty since objects are passed by reference,
+ // but needing the full views object in a core action is in most cases
+ // a sign of a wrong implementation. Do it only if you have to.
+ 'view' => $view,
);
$form += $operation->form($form, $form_state, $context);