Commit a1c0e594 authored by frjo's avatar frjo
Browse files

Minor coding standard fixes, thanks Coder module.

parent 149cb18c
...@@ -544,7 +544,7 @@ function colorbox_field_formatter_settings_summary($field, $instance, $view_mode ...@@ -544,7 +544,7 @@ function colorbox_field_formatter_settings_summary($field, $instance, $view_mode
if (isset($image_styles[$settings['colorbox_node_style']])) { if (isset($image_styles[$settings['colorbox_node_style']])) {
$summary[] = t('Content image style: @style', array('@style' => $image_styles[$settings['colorbox_node_style']])); $summary[] = t('Content image style: @style', array('@style' => $image_styles[$settings['colorbox_node_style']]));
} }
else if ($settings['colorbox_node_style'] == 'hide') { elseif ($settings['colorbox_node_style'] == 'hide') {
$summary[] = t('Content image style: Hide'); $summary[] = t('Content image style: Hide');
} }
else { else {
......
...@@ -129,7 +129,7 @@ function theme_colorbox_imagefield($variables) { ...@@ -129,7 +129,7 @@ function theme_colorbox_imagefield($variables) {
$image = ''; $image = '';
$class[] = 'js-hide'; $class[] = 'js-hide';
} }
else if (!empty($variables['image']['style_name'])) { elseif (!empty($variables['image']['style_name'])) {
$image = theme('image_style', $variables['image']); $image = theme('image_style', $variables['image']);
} }
else { else {
......
<?php <?php
/**
* @file
* Colorbox translatable variables.
*/
/** /**
* Implements hook_variable_info(). * Implements hook_variable_info().
*/ */
......
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