You are here

function advanced_forum_load_style_includes in Advanced Forum 7.2

Same name and namespace in other branches
  1. 6.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.

3 calls to advanced_forum_load_style_includes()
advanced_forum_theme in ./advanced_forum.module
Implements hook_theme().
advanced_forum_theme_registry_alter in ./advanced_forum.module
Implements hook_theme_registry_alter().
_advanced_forum_add_files in includes/style.inc
Adds extra files needed for styling.

File

includes/style.inc, line 195
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";
    }
  }
}