You are here

function advanced_forum_preprocess_page in Advanced Forum 7.2

Same name and namespace in other branches
  1. 6.2 includes/theme.inc \advanced_forum_preprocess_page()

Preprocesses template variables for the page template.

File

includes/theme.inc, line 495
Holds theme functions and template preprocesses. Other style related functions are in style.inc

Code

function advanced_forum_preprocess_page(&$variables) {
  if (arg(0) == 'forum') {
    $variables['forum_page'] = TRUE;
  }
  elseif (arg(0) == 'node' && !empty($variables['node']) && advanced_forum_type_is_in_forum($variables['node']->type)) {
    $variables['forum_page'] = TRUE;
  }
}