function node_gallery_theme in Node Gallery 6.2
Same name and namespace in other branches
- 6.3 node_gallery.module \node_gallery_theme()
- 6 node_gallery.module \node_gallery_theme()
Implementation of hook_theme()
File
- ./
node_gallery.module, line 185 - Node gallery module file
Code
function node_gallery_theme() {
$file = 'theme.inc';
$path = drupal_get_path('module', 'node_gallery') . "/theme";
$themes = array(
'gallery_list' => array(
'arguments' => array(
'items' => NULL,
'account' => NULL,
),
),
'gallery_cover_view' => array(
'template' => 'gallery-cover-view',
'arguments' => array(
'gallery' => NULL,
),
'path' => $path,
),
'gallery_teaser' => array(
'arguments' => array(
'gallery' => NULL,
'config' => NULL,
),
'template' => 'gallery-teaser',
'path' => $path,
),
'gallery_images_list' => array(
'arguments' => array(
'gallery' => NULL,
'config' => NULL,
),
'template' => 'gallery-images-list',
'path' => $path,
),
'image_detail_view' => array(
'template' => 'image-detail-view',
'arguments' => array(
'image' => NULL,
'config' => NULL,
),
'path' => $path,
),
'gallery_image_thumbnail' => array(
'template' => 'gallery-image-thumbnail',
'arguments' => array(
'image' => NULL,
'config' => NULL,
'mode' => NULL,
),
),
'image_view' => array(
'arguments' => array(
'imagecache' => NULL,
'image' => NULL,
),
),
'gallery_image_navigator' => array(
'arguments' => array(
'navigator' => NULL,
'image' => NULL,
),
),
'gallery_meta' => array(
'arguments' => array(
'gallery' => NULL,
),
),
'gallery_edit_images_form' => array(
'arguments' => array(
'form' => NULL,
),
),
'gallery_sort_images_form' => array(
'arguments' => array(
'form' => NULL,
),
),
);
foreach ($themes as &$theme) {
$theme['path'] = $path;
$theme['file'] = $file;
}
return $themes;
}