function nyan_cat_init

Same name in other branches
  1. 9 core/modules/system/tests/themes/engines/nyan_cat/nyan_cat.engine \nyan_cat_init()
  2. 8.9.x 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

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.