Same name and namespace in other branches
- 7.x-1.x colorbox.module \colorbox_insert_styles() 1 comment
Implements hook_insert_styles().
@codingStandardsIgnoreStart
Return value
array Returns a array with styles.
File
-
./
colorbox.module, line 563
Code
function colorbox_insert_styles() {
$insert_styles = array();
foreach (image_styles() as $key => $style) {
$label = isset($style['label']) ? $style['label'] : $style['name'];
$insert_styles['colorbox__' . $key] = array(
'label' => t('Colorbox @style', array(
'@style' => $label,
)),
);
}
return $insert_styles;
}