function views_handler_field_views_system_screenshot::options_form in Views System 7.4
Default options form provides the label widget that all fields should have.
Overrides views_handler_field::options_form
File
- views/
views_handler_field_views_system_screenshot.inc, line 26 - Definition of views_handler_field_views_system_screenshot.
Class
- views_handler_field_views_system_screenshot
- Field handler to display the thumbnail image of a theme.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['image'] = array(
'#type' => 'checkbox',
'#title' => t('Display as image'),
'#description' => t('If checked, the screenshot will be displayed as image.'),
'#default_value' => $this->options['image'],
);
$form['image_width'] = array(
'#type' => 'textfield',
'#title' => t('Width'),
'#default_value' => $this->options['image_width'],
'#process' => array(
'ctools_dependent_process',
),
'#dependency' => array(
'edit-options-image' => array(
1,
),
),
);
$form['image_height'] = array(
'#type' => 'textfield',
'#title' => t('Height'),
'#default_value' => $this->options['image_height'],
'#process' => array(
'ctools_dependent_process',
),
'#dependency' => array(
'edit-options-image' => array(
1,
),
),
);
}