function image_handler_relationship_node_image_file::options_form in Image 7
Same name and namespace in other branches
- 6 views/image_handler_relationship_node_image_file.inc \image_handler_relationship_node_image_file::options_form()
Provide the label widget that all fields should have.
Overrides views_handler_relationship::options_form
File
- views/
image_handler_relationship_node_image_file.inc, line 16 - Views relationship handler for image size filter.
Class
- image_handler_relationship_node_image_file
- @file Views relationship handler for image size filter.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$image_size_options = array();
foreach (image_get_sizes() as $key => $size) {
$image_size_options[$key] = $size['label'];
}
$form['image_size'] = array(
'#type' => 'select',
'#title' => t('Image sizes'),
'#options' => $image_size_options,
'#default_value' => $this->options['image_size'],
'#multiple' => TRUE,
'#description' => t('Which image sizes to join on. You can select none (to include all sizes), one, or multiple; Every size will introduce a new row. Example: If the result are 5 image nodes and you selected 2 sizes; The result will be 10 rows. There is no fallback; if a size does not exist (because the original is smaller) then no data will be obtained.'),
);
}