template.php modification

teamdiets - February 21, 2008 - 03:18
Project:Advanced Forum
Version:5.x-1.0-alpha2
Component:Code
Category:support request
Priority:normal
Assigned:teamdiets
Status:closed
Description

I can't figure out how to correctly change the template.php file for the advanced forum mod. As per your instructions, I've attached the template.php file. Please advise.

AttachmentSize
template.php_.txt3.96 KB

#1

Michelle - February 22, 2008 - 04:14
Status:active» fixed

That looks just like Garland's, which is included in the package... Anyway:

<?php
function _phptemplate_variables($hook, $vars) {
  if (
module_exists('advanced_forum')) {
   
$vars = advanced_forum_addvars($hook, $vars);
  }

  if (
$hook == 'page') {

    if (
$secondary = menu_secondary_local_tasks()) {
     
$output = '<span class="clear"></span>';
     
$output .= "<ul class=\"tabs secondary\">\n". $secondary ."</ul>\n";
     
$vars['tabs2'] = $output;
    }

   
// Hook into color.module
   
if (module_exists('color')) {
     
_color_page_alter($vars);
    }
  }
 
  return
$vars;
}
?>

#2

teamdiets - February 22, 2008 - 14:50

It's actually Aberdeen, but thanks.

#3

Michelle - February 22, 2008 - 15:51

Ah, interesting. I didn't realize there were other themes using the color module.

Michelle

#4

Anonymous (not verified) - March 7, 2008 - 15:52
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.