Commit ce90f5dc authored by git's avatar git Committed by frjo
Browse files

Issue #2175859 by frjo, bskibinski: Use image style label instead of machine name.

parent 8e6f7619
......@@ -494,7 +494,8 @@ function colorbox_field_formatter_view($entity_type, $entity, $field, $instance,
function colorbox_insert_styles() {
$insert_styles = array();
foreach (image_styles() as $key => $style) {
$insert_styles['colorbox__' . $key] = array('label' => t('Colorbox @style', array('@style' => $style['name'])));
$label = isset($style['label']) ? $style['label'] : $style['name'];
$insert_styles['colorbox__' . $key] = array('label' => t('Colorbox @style', array('@style' => $label)));
}
return $insert_styles;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment