public function ViewsBulkOperationsAction::form in Views Bulk Operations (VBO) 7.3
Returns the configuration form for the operation. Only called if the operation is declared as configurable.
Parameters
$form: The views form.
$form_state: An array containing the current state of the form.
$context: An array of related data provided by the caller.
Overrides ViewsBulkOperationsBaseOperation::form
File
- plugins/
operation_types/ action.class.php, line 79 - Defines the class for core actions. Belongs to the "action" operation type plugin.
Class
- ViewsBulkOperationsAction
- @file Defines the class for core actions. Belongs to the "action" operation type plugin.
Code
public function form($form, &$form_state, array $context) {
// Some modules (including this one) place their action callbacks
// into separate files. At this point those files might no longer be
// included due to an #ajax rebuild, so we call actions_list() to trigger
// inclusion. The same thing is done by actions_do() on execute.
actions_list();
$context['settings'] = $this
->getAdminOption('settings', array());
$form_callback = $this->operationInfo['callback'] . '_form';
return $form_callback($context, $form_state);
}