You are here

function _itweak_upload_lightbox_link_mode_options in iTweak Upload 7.3

2 calls to _itweak_upload_lightbox_link_mode_options()
itweak_upload_field_formatter_settings_form in ./itweak_upload.module
Implements hook_field_formatter_settings_form().
itweak_upload_field_formatter_settings_summary in ./itweak_upload.module
Implements hook_field_formatter_settings_summary().

File

./itweak_upload.module, line 219
iTweakUpload - Tweak attachments display and file upload forms.

Code

function _itweak_upload_lightbox_link_mode_options() {
  $ret = array();
  $ret['none'] = t('Open image');
  if (module_exists('lightbox2')) {
    $ret['lightbox2'] = t('Lightbox');
    $ret['lightbox2grouped'] = t('Lightbox Grouped');
    $ret['lightbox2slideshow'] = t('Lightbox Slideshow');
  }
  if (module_exists('colorbox')) {
    $ret['colorbox'] = t('Colorbox');
  }
  if (module_exists('fancybox')) {
    $ret['fancybox'] = t('Fancybox');
  }
  if (module_exists('shadowbox')) {
    $ret['shadowbox'] = t('Shadowbox');
    $ret['shadowboxgrouped'] = t('Shadowbox Grouped');
  }
  if (module_exists('highslide') || module_exists('highslide2')) {
    $ret['highslide'] = t('Highslide');
    $ret['highslidegrouped'] = t('Highslide Grouped');
  }
  return $ret;
}