You are here

function node_gallery_theme_registry_alter in Node Gallery 6.3

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

Implements hook_theme_registry_alter().

File

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

Code

function node_gallery_theme_registry_alter(&$theme_registry) {

  /*
   * By unshifting our path onto the node themepath, Drupal will use our
   * supplied node-image-default.tpl.php template, but only if the themer
   * hasn't created their own to override it.
   */
  $themepath = drupal_get_path('module', 'node_gallery') . "/theme";
  array_unshift($theme_registry['node']['theme paths'], $themepath);
}