You are here

function nyan_cat_init in Drupal 7

Same name and namespace in other branches
  1. 8 core/modules/system/tests/themes/engines/nyan_cat/nyan_cat.engine \nyan_cat_init()
  2. 9 core/modules/system/tests/themes/engines/nyan_cat/nyan_cat.engine \nyan_cat_init()

Includes .theme file from themes.

File

modules/simpletest/tests/themes/engines/nyan_cat/nyan_cat.engine, line 11
Handles integration of Nyan cat templates because we love kittens.

Code

function nyan_cat_init($template) {
  $file = dirname($template->filename) . '/template.theme';
  if (file_exists($file)) {
    include_once DRUPAL_ROOT . '/' . $file;
  }
}