function _colorbox_field_formatter_get_styles in Colorbox field formatter 7
Callback to provide an array for a select field containing all supported colorbox styles.
Return value
array
2 calls to _colorbox_field_formatter_get_styles()
File
- ./
colorbox_field_formatter.module, line 38 - Implement a colorbox field formatter for proper links.
Code
function _colorbox_field_formatter_get_styles() {
$styles = array();
if (variable_get('colorbox_inline', 0)) {
$styles['colorbox-inline'] = t('Colorbox inline');
}
if (variable_get('colorbox_load', 0)) {
$styles['colorbox-load'] = t('Colorbox load');
}
if (module_exists('colorbox_node')) {
$styles['colorbox-node'] = t('Colorbox node');
}
return $styles;
}