You are here

function image_gallery_handler_field_gallery_cover_latest_time::options_form in Image 6

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

Overrides image_gallery_handler_field_gallery_cover::options_form

File

contrib/image_gallery/views/image_gallery_handler_field_gallery_cover_latest_time.inc, line 7

Class

image_gallery_handler_field_gallery_cover_latest_time
Field handler for the gallery's updated time.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);

  // Overwrite the descendants option so the text is relevant.
  $form['descendants']['#description'] = theme('advanced_help_topic', 'image_gallery', 'descendants') . t('Whether to only consider this gallery itself, or consider subgalleries all together, or recurse into subgalleries if the gallery itself is empty.');
  $form['descendants']['#options'] = array(
    'single' => t('Only get latest time 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!).'),
  );
}