You are here

function node_gallery_theme in Node Gallery 6.3

Same name and namespace in other branches
  1. 6 node_gallery.module \node_gallery_theme()
  2. 6.2 node_gallery.module \node_gallery_theme()

Implements hook_theme().

File

./node_gallery.module, line 310
Node gallery module file.

Code

function node_gallery_theme() {
  $file = 'theme.inc';
  $path = drupal_get_path('module', 'node_gallery') . "/theme";
  $themes = array(
    'node_gallery_image_navigator' => array(
      'template' => 'node-gallery-image-navigator',
      'arguments' => array(
        'navigator' => NULL,
        'image' => NULL,
      ),
    ),
    'node_gallery_manage_images_form' => array(
      'arguments' => array(
        'form' => NULL,
      ),
    ),
    'gallery_edit_images_form' => array(
      'arguments' => array(
        'form' => NULL,
      ),
    ),
    'node_gallery_sort_images_form' => array(
      'arguments' => array(
        'form' => NULL,
      ),
    ),
    'node_gallery_sort_images_grid' => array(
      'template' => 'node-gallery-sort-images-grid',
      'arguments' => array(
        'images' => NULL,
      ),
    ),
    'node_gallery_sort_images_grid_item' => array(
      'template' => 'node-gallery-sort-images-grid-item',
      'arguments' => array(
        'image' => NULL,
      ),
    ),
    'node_gallery_content_multiple_values' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
  );
  foreach (imagecache_presets() as $preset) {
    $themes['node_gallery_formatter_' . $preset['presetname'] . '_nextimagelink'] = array(
      'arguments' => array(
        'element' => NULL,
      ),
      'function' => 'theme_node_gallery_formatter_nextimagelink',
    );
    $themes['node_gallery_formatter_' . $preset['presetname'] . '_gallerylink'] = array(
      'arguments' => array(
        'element' => NULL,
      ),
      'function' => 'theme_node_gallery_formatter_gallerylink',
    );
  }
  foreach ($themes as &$theme) {
    $theme['path'] = $path;
    $theme['file'] = $file;
  }
  return $themes;
}