You are here

function advanced_forum_style_template_path in Advanced Forum 7.2

Starting at a given style, return path of template file.

File

includes/style.inc, line 111
Functions relating to the style system, not including core hooks and preprocess / theme functions.

Code

function advanced_forum_style_template_path($template_name, $style = NULL) {
  static $styles_files = array();
  if (empty($styles_files)) {
    $styles_files = file_scan_directory(drupal_get_path('module', 'advanced_forum') . '/styles', '/(.*)/', array(), 2);
  }
  $lineage = advanced_forum_style_lineage($style);
  $path = '';
  foreach ($lineage as $key => $path) {
    $template_path = "";
  }
  return $path;
}