Is there a Drupal function that returns the absolute theme path? Or is there a canonical / base practice way of doing this correctly returning the theme path?
What I've found so far is this:
<?php
// @file template.php
$template_path = DRUPAL_ROOT . drupal_get_path('theme', 'foo');
I'm looking to require_once the template path in a template.php file like so:
<?php
$template_path = DRUPAL_ROOT . drupal_get_path('theme', 'coo');
// ...
// Check file exists etc
require_once $template_path;