public function ViewsBulkOperationsAction::adminOptionsForm in Views Bulk Operations (VBO) 7.3
Returns the admin options form for the operation.
The admin options form is embedded into the VBO field settings and used to configure operation behavior. The options can later be fetched through the getAdminOption() method.
Parameters
$dom_id: The dom path to the level where the admin options form is embedded. Needed for #dependency.
$field_handler: The Views field handler object for the VBO field.
Overrides ViewsBulkOperationsBaseOperation::adminOptionsForm
File
- plugins/
operation_types/ action.class.php, line 152 - 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 adminOptionsForm($dom_id, $field_handler) {
$form = parent::adminOptionsForm($dom_id, $field_handler);
$settings_form_callback = $this->operationInfo['callback'] . '_views_bulk_operations_form';
if (function_exists($settings_form_callback)) {
$settings = $this
->getAdminOption('settings', array());
$form['settings'] = array(
'#type' => 'fieldset',
'#title' => t('Operation settings'),
'#collapsible' => TRUE,
'#dependency' => array(
$dom_id . '-selected' => array(
1,
),
),
);
$settings_dom_id = $dom_id . '-settings';
$form['settings'] += $settings_form_callback($settings, $this->entityType, $settings_dom_id);
}
return $form;
}