You are here

function advanced_forum_comment_wrapper in Advanced Forum 6.2

Allow themable wrapping of all comments.

1 string reference to 'advanced_forum_comment_wrapper'
advanced_forum_theme_registry_alter in ./advanced_forum.module
Implementation of hook_theme_registry_alter().

File

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

Code

function advanced_forum_comment_wrapper($content, $node) {

  // See if this is a forum post:
  $vid = variable_get('forum_nav_vocabulary', '');
  foreach ($node->taxonomy as $tid => $term) {
    if ($term->vid == $vid) {
      return _advanced_forum_comment_wrapper($content, $node);
    }
  }
  return phptemplate_comment_wrapper($content, $node);
}