function _vsf_wysiwyg_default_image_style_options in Visual select file 7
Helper to get the default image style + link options for the wysiwyg image selection.
2 calls to _vsf_wysiwyg_default_image_style_options()
- vsf_wysiwyg_form_views_exposed_form_alter in submodules/
vsf_wysiwyg/ vsf_wysiwyg.module - Implements hook_form_FORM_ID_alter() for views_exposed_form().
- vsf_wysiwyg_form_visual_select_file_settings_form_alter in submodules/
vsf_wysiwyg/ vsf_wysiwyg.admin.inc - Implements hook_form_FORM_ID_alter() for visual_select_file_settings_form().
File
- submodules/
vsf_wysiwyg/ vsf_wysiwyg.module, line 272
Code
function _vsf_wysiwyg_default_image_style_options() {
$options = array(
'' => t('- Choose -'),
'original' => t('Original'),
);
$styles = image_style_options(FALSE);
$options += $styles;
$options['link'] = t('Link to Original');
foreach ($styles as $style => $info) {
$options['link:' . $style] = t('Link to @style', array(
'@style' => $style,
));
}
return $options;
}