You are here

function advanced_forum_load_style_includes in Advanced Forum 6.2

Same name and namespace in other branches
  1. 7.2 includes/style.inc \advanced_forum_load_style_includes()

Load any .inc files related to the style so that preprocess functions can run as appropriate.

2 calls to advanced_forum_load_style_includes()
advanced_forum_theme_registry_alter in ./advanced_forum.module
Implementation of hook_theme_registry_alter().
_advanced_forum_add_files in includes/style.inc
Adds extra files needed for styling. This is currently just CSS files but was made generic to allow adding javascript in the future.

File

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

Code

function advanced_forum_load_style_includes($style = NULL) {
  $lineage = advanced_forum_style_lineage($style);
  foreach ($lineage as $key => $path) {
    if (file_exists("{$path}/{$key}.inc")) {
      require_once "{$path}/{$key}.inc";
    }
  }
}