You are here

public function ViewsBulkOperationsBaseOperation::adminOptionsFormSubmit in Views Bulk Operations (VBO) 7.3

Handles the submitted admin options form. Note that there is no need to handle saving the options, that is done by the VBO views field handler, which also injects the options into the operation object upon instantiation.

Parameters

$form: The admin options form.

$form_state: An array containing the current state of the form. Note that this array is constructed by the VBO views field handler, so it's not a real form state, it contains only the 'values' key.

1 call to ViewsBulkOperationsBaseOperation::adminOptionsFormSubmit()
ViewsBulkOperationsAction::adminOptionsFormSubmit in plugins/operation_types/action.class.php
Handles the submitted admin options form. Note that there is no need to handle saving the options, that is done by the VBO views field handler, which also injects the options into the operation object upon instantiation.
1 method overrides ViewsBulkOperationsBaseOperation::adminOptionsFormSubmit()
ViewsBulkOperationsAction::adminOptionsFormSubmit in plugins/operation_types/action.class.php
Handles the submitted admin options form. Note that there is no need to handle saving the options, that is done by the VBO views field handler, which also injects the options into the operation object upon instantiation.

File

plugins/operation_types/base.class.php, line 237
Defines the base class for operations.

Class

ViewsBulkOperationsBaseOperation
@file Defines the base class for operations.

Code

public function adminOptionsFormSubmit($form, &$form_state) {

  // If the "Override label" checkbox was deselected, clear the entered value.
  if (empty($form_state['values']['override_label'])) {
    $form_state['values']['label'] = '';
  }
}