image_style_options($include_empty = TRUE)Get an array of image styles suitable for using as select list options.
$include_empty If TRUE a <none> option will be inserted in the options array.
Array of image styles both key and value are set to style name.
modules/image/image.module, line 565
<?php
function image_style_options($include_empty = TRUE) {
$styles = image_styles();
$options = array();
if ($include_empty && !empty($styles)) {
$options[''] = t('<none>');
}
$options = array_merge($options, drupal_map_assoc(array_keys($styles)));
if (empty($options)) {
$options[''] = t('No defined styles');
}
return $options;
}
?>