function colorbox_insert_styles in Colorbox 7.2
Same name and namespace in other branches
- 6 colorbox.module \colorbox_insert_styles()
- 7 colorbox.module \colorbox_insert_styles()
Implements hook_insert_styles().
@codingStandardsIgnoreStart
Return value
array Returns a array with styles.
File
- ./
colorbox.module, line 514 - A light-weight, customizable lightbox plugin for jQuery 1.3.
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;
}