You are here

function image_gallery_handler_field_gallery_cover::options_form in Image 6

Same name and namespace in other branches
  1. 7 contrib/image_gallery/views/image_gallery_handler_field_gallery_cover.inc \image_gallery_handler_field_gallery_cover::options_form()
2 calls to image_gallery_handler_field_gallery_cover::options_form()
image_gallery_handler_field_gallery_cover_latest_time::options_form in contrib/image_gallery/views/image_gallery_handler_field_gallery_cover_latest_time.inc
image_gallery_handler_field_gallery_cover_thumbnail::options_form in contrib/image_gallery/views/image_gallery_handler_field_gallery_cover_thumbnail.inc
Extends the field's basic options with more image specific options.
2 methods override image_gallery_handler_field_gallery_cover::options_form()
image_gallery_handler_field_gallery_cover_latest_time::options_form in contrib/image_gallery/views/image_gallery_handler_field_gallery_cover_latest_time.inc
image_gallery_handler_field_gallery_cover_thumbnail::options_form in contrib/image_gallery/views/image_gallery_handler_field_gallery_cover_thumbnail.inc
Extends the field's basic options with more image specific options.

File

contrib/image_gallery/views/image_gallery_handler_field_gallery_cover.inc, line 62

Class

image_gallery_handler_field_gallery_cover
Parent class for field handlers that gives us a gallery cover.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['descendants'] = array(
    '#type' => 'radios',
    '#title' => t('Descendant handling'),
    // Child handlers should replace this text with something more relevant
    // to what they do.
    '#description' => theme('advanced_help_topic', 'image_gallery', 'descendants') . t('How to get data from subgalleries: either only select from this gallery itself, or consider subgalleries all together, or recurse into subgalleries if the gallery itself is empty.'),
    '#options' => array(
      'single' => t('Only select from this gallery'),
      'flat' => t('Consider subgalleries, flattened.'),
      'recurse' => t('Consider subgalleries, recursively. (Warning: this can produce many queries per row if your parent galleries are empty!).'),
    ),
    '#default_value' => $this->options['descendants'],
  );
  $form['depth'] = array(
    '#type' => 'select',
    '#title' => t('Depth'),
    '#options' => array_merge(range(0, 10), array(
      'all' => 'Unlimited',
    )),
    '#default_value' => $this->options['depth'],
    '#description' => t('How deeply to go into subgalleries if one of the descendant options is selected above.'),
  );
}