Hi,
I have the following installation:
- drupal 7.14
- advanced forum 7.x-2.0-beta1
I have overridden the following page:
advanced-forum.naked.forum-list.tpl.php
into my theme directory.
Now I'm trying to customize it, printing some information contained in the variable "$forums".
But I get an error: variable "$forums" is not defined.
This is strange because:
- in the comments at the beginning of the page itself, this variable is explicitly mentioned
- in a previous version of advanced forum (6.x-1.1) I could use "$forums" without problems.
1) Are there any changes in the code of the module that exclude the variable "$forums" ?
2) Maybe the comments at the beginning of the page, mentioning "$forums", are wrong ?
3) Is there another variable similar to "$forums"? (I've checked the variable "$tables" but it's quite different)
Thank you for any suggestion,
Marco
Comments
Comment #1
troky CreditAttribution: troky commented$forums variable was removed from template in favor of $table variable that contains container/forum hierarchy.
I don't see any reason not to expose old $forums variable, too since it is already generated in preprocess function.
Fixed in 7.x-2.x-dev.