You are here

function uc_store_image_widget_lightbox2 in Ubercart 7.3

Same name and namespace in other branches
  1. 6.2 uc_store/uc_store.module \uc_store_image_widget_lightbox2()

Generates the Lightbox2-specific HTML attributes.

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

File

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

Code

function uc_store_image_widget_lightbox2($rel_count) {
  if (!is_null($rel_count)) {
    $img_index = 'lightbox[' . $rel_count . ']';
  }
  else {
    $img_index = 'lightbox';
  }
  return ' rel="' . $img_index . '"';
}