$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);
}
$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);