function _itweak_upload_setting_link_options in iTweak Upload 7.3
Same name and namespace in other branches
- 6.2 itweak_upload.admin.inc \_itweak_upload_setting_link_options()
2 calls to _itweak_upload_setting_link_options()
- _itweak_upload_admin_settings in ./
itweak_upload.admin.inc - Administration settings form worker code.
- _itweak_upload_node_type_form in ./
itweak_upload.admin.inc - Node type settings form.
File
- ./
itweak_upload.admin.inc, line 33 - Administration settings for iTweak Upload module @todo: Currently UNUSED in D7. Need to convert to D7 and include into the module.info.
Code
function _itweak_upload_setting_link_options($default_text = NULL) {
$ret = array();
if ($default_text) {
$ret['_default'] = $default_text;
}
$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('thickbox')) {
$ret['thickbox'] = t('Thickbox');
}
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')) {
$ret['highslide'] = t('Highslide');
$ret['highslidegrouped'] = t('Highslide Grouped');
}
return $ret;
}