You are here

function image_attach_views_handler_field_attached_images::options_form in Image 6

Extend the field's basic options with more image specific options.

TODO: hide the 'link to node' option?

Overrides image_handler_field_image_node_image::options_form

File

contrib/image_attach/image_attach_views_handler_field_attached_images.inc, line 46

Class

image_attach_views_handler_field_attached_images
Field handler to display the attached images on a node.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['as_link'] = array(
    '#type' => 'select',
    '#title' => t('Link'),
    '#options' => array(
      'none' => t('No link'),
      'node' => t('Node'),
      'image' => t('Image node'),
    ),
    '#default_value' => $this->options['as_link'],
  );
}