You are here

function theme_custom_formatters_image_styles in Custom Formatters 7.2

Theme callback for Custom Formatters Image Styles element.

Parameters

array $variables: The theme varibles array.

Return value

string The rendered image styles element.

1 theme call to theme_custom_formatters_image_styles()
image_custom_formatters_element_info_alter in includes/image.inc
Implements hook_custom_formatters_element_info_alter().

File

includes/image.inc, line 61
Image module integration.

Code

function theme_custom_formatters_image_styles($variables) {
  $element = $variables['element'];
  $element['#options'] = image_style_options();
  element_set_attributes($element, array(
    'id',
    'name',
    'size',
  ));
  _form_set_class($element, array(
    'form-select',
  ));
  return '<select' . drupal_attributes($element['#attributes']) . '>' . form_select_options($element) . '</select>';
}