You are here

function views_bulk_operations_archive_action_form in Views Bulk Operations (VBO) 7.3

Configuration form shown to the user before the action gets executed.

File

actions/archive.action.inc, line 93
Provides an action for creating a zip archive of selected files.

Code

function views_bulk_operations_archive_action_form($context) {

  // Pass the scheme as a value, so that the submit callback can access it.
  $form['scheme'] = array(
    '#type' => 'value',
    '#value' => $context['settings']['scheme'],
  );
  $form['filename'] = array(
    '#type' => 'textfield',
    '#title' => t('Filename'),
    '#default_value' => 'vbo_archive_' . date('Ymd'),
    '#field_suffix' => '.zip',
    '#description' => t('The name of the archive file.'),
  );
  return $form;
}