function visual_select_file_views_handler_field_image::options_form in Visual select file 7
Default options form provides the label widget that all fields should have.
Overrides views_handler_field::options_form
File
Class
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
// Display.
$styles = image_style_options();
$form['image_style'] = array(
'#type' => 'select',
'#title' => t('Image style'),
'#options' => $styles,
'#default_value' => $this->options['image_style'],
);
// Link.
$styles = array(
'' => '<no link>',
'_original' => '<original>',
) + image_style_options(FALSE);
$form['link_to'] = array(
'#type' => 'select',
'#title' => t('Link to'),
'#options' => $styles,
'#default_value' => $this->options['link_to'],
);
}