You are here

function views_bulk_operations_action_submit in Views Bulk Operations (VBO) 6

Same name and namespace in other branches
  1. 6.3 views_bulk_operations.module \views_bulk_operations_action_submit()

Form submit function for views_bulk_operations_action action.

1 call to views_bulk_operations_action_submit()
views_bulk_operations_rules_action_submit in ./views_bulk_operations.rules.inc

File

./views_bulk_operations.module, line 1406
Allows operations to be performed on items selected in a view.

Code

function views_bulk_operations_action_submit($form, $form_state) {
  $submit = array(
    'view_vid' => $form_state['values']['view_vid'],
    'operation_key' => $form_state['values']['operation_key'],
    'operation_arguments' => $form_state['values']['operation_arguments'],
    'view_exposed_input' => $form_state['values']['view_exposed_input'],
    'view_arguments' => $form_state['values']['view_arguments'],
    'respect_limit' => $form_state['values']['respect_limit'],
  );
  if ($form['#operation'] && function_exists($form['#operation']['callback'] . '_submit')) {
    $submit = array_merge($submit, _views_bulk_operations_action_submit($form['#operation'], $form, $form_state));
  }
  return $submit;
}