You are here

function uc_store_image_widget_colorbox in Ubercart 6.2

Same name and namespace in other branches
  1. 7.3 uc_store/uc_store.module \uc_store_image_widget_colorbox()

This function generates the Colorbox-specific HTML attributes.

1 string reference to 'uc_store_image_widget_colorbox'
uc_store_uc_image_widget in uc_store/uc_store.module
Implements hook_uc_image_widget().

File

uc_store/uc_store.module, line 2223
Contains global Ubercart functions and store administration functionality.

Code

function uc_store_image_widget_colorbox($rel_count) {
  if (!is_null($rel_count)) {
    $img_index = 'uc_image_' . $rel_count;
  }
  else {
    $img_index = 'uc_image';
  }
  return ' class="colorbox" rel="' . $img_index . '"';
}