function advanced_forum_path_to_style in Advanced Forum 6
Same name and namespace in other branches
- 5 advanced_forum.module \advanced_forum_path_to_style()
- 6.2 includes/style.inc \advanced_forum_path_to_style()
- 7.2 includes/style.inc \advanced_forum_path_to_style()
Returns the path to the advanced forum style, including the style name
3 calls to advanced_forum_path_to_style()
- advanced_forum_path_to_images in ./
advanced_forum.module - Returns the path to the advanced forum image directory
- advanced_forum_theme_registry_alter in ./
advanced_forum.module - Implementation of hook_theme_registry_alter().
- _advanced_forum_add_files in ./
advanced_forum.module - Adds extra files needed when we have a post that is to be treated as a forum post. Mostly CSS but could be JS and others in the future.
File
- ./
advanced_forum.module, line 1230 - Enables the look and feel of other popular forum software.
Code
function advanced_forum_path_to_style() {
static $style_path;
if (!$style_path) {
// Retrieve the style name
$style = advanced_forum_get_current_style();
// Get the path information
$style_info = advanced_forum_get_style($style);
$style_path = $style_info['path'];
}
return $style_path;
}