function _advanced_forum_add_files in Advanced Forum 5
Same name and namespace in other branches
- 6.2 includes/style.inc \_advanced_forum_add_files()
- 6 advanced_forum.module \_advanced_forum_add_files()
- 7.2 includes/style.inc \_advanced_forum_add_files()
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.
2 calls to _advanced_forum_add_files()
- advanced_forum_page in ./
advanced_forum.module - Menu callback; prints a forum listing.
- advanced_forum_treat_as_forum_post in ./
advanced_forum.module - This function returns true if the node/comment should be themed and otherwise treated as a forum post.
File
- ./
advanced_forum.module, line 1366 - Enables the look and feel of other popular forum software.
Code
function _advanced_forum_add_files() {
// This could get called more than once on a page and we only need to do it
// once.
static $added;
if (!$added) {
$added = TRUE;
$style_directory = advanced_forum_path_to_style();
drupal_add_css("{$style_directory}/advanced_forum-structure.css");
drupal_add_css("{$style_directory}/advanced_forum.css");
}
}