You are here

function image_gallery_handler_relationship_gallery_cover::options_form in Image 7

Same name and namespace in other branches
  1. 6 contrib/image_gallery/views/image_gallery_handler_relationship_gallery_cover.inc \image_gallery_handler_relationship_gallery_cover::options_form()

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

Overrides views_handler_relationship::options_form

File

contrib/image_gallery/views/image_gallery_handler_relationship_gallery_cover.inc, line 67

Class

image_gallery_handler_relationship_gallery_cover
Relationship handler for image gallery cover node.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['depth'] = array(
    '#type' => 'weight',
    '#title' => t('Depth'),
    '#default_value' => $this->options['depth'],
    '#description' => t('The depth will determine how deep to look into descendant galleries to cover nodes.' . 'There is no recursion: so setting the depth to 1 will choose the best fitting node out of the pool of images in the gallery and its children taken all together.' . 'Setting this to 0 will only consider the gallery itself.'),
  );
}