You are here

function cloud_zoom_theme in Cloud Zoom 7

Same name and namespace in other branches
  1. 8 cloud_zoom.module \cloud_zoom_theme()
  2. 6 cloud_zoom.module \cloud_zoom_theme()

Implementation of hook_theme().

File

./cloud_zoom.module, line 479
This module integrates the Cloud Zoom JQuery library from: http://www.professorcloud.com/mainsite/cloud-zoom.htm

Code

function cloud_zoom_theme() {
  $theme_info = array(
    'cloud_zoom_image' => array(
      'variables' => array(
        'item' => NULL,
      ),
    ),
    'cloud_zoom_image_gallery' => array(
      'variables' => array(
        'items' => 0,
      ),
    ),
  );

  // Pass default settings values.
  $cloud_zoom_settings = cloud_zoom_settings_info('default_value');
  $theme_info['cloud_zoom_image']['variables'] += $cloud_zoom_settings;
  $theme_info['cloud_zoom_image_gallery']['variables'] += $cloud_zoom_settings;
  return $theme_info;
}