You are here

function node_gallery_api_theme in Node Gallery 7

Implements hook_theme().

File

./node_gallery_api.module, line 1040
Node Gallery module.

Code

function node_gallery_api_theme() {
  $file = 'theme.inc';
  $path = drupal_get_path('module', 'node_gallery') . "/theme";
  $themes = array(
    'node_gallery_api_item_navigator' => array(
      'template' => 'node-gallery-api-item-navigator',
      'variables' => array(
        'navigator' => NULL,
        'item' => NULL,
      ),
    ),
    'node_gallery_api_manage_items_form' => array(
      'render element' => 'form',
    ),
    'node_gallery_api_sort_items_form' => array(
      'render element' => 'form',
    ),
    'node_gallery_api_file_display_link' => array(
      'render element' => 'element',
    ),
  );
  foreach ($themes as &$theme) {
    $theme['path'] = $path;
    $theme['file'] = $file;
  }
  return $themes;
}