Révision 13c3c9b4
Ajouté par Assos Assos il y a environ 9 ans
drupal7/sites/all/modules/advanced_forum/includes/advanced_forum_preprocess_forums.inc | ||
---|---|---|
6 | 6 |
* to ease memory requirements and having too much code in one file. |
7 | 7 |
*/ |
8 | 8 |
|
9 |
/** |
|
10 |
* Preprocess forum. |
|
11 |
*/ |
|
9 | 12 |
function _advanced_forum_preprocess_forums(&$variables) { |
10 | 13 |
$variables['forums_defined'] = count($variables['forums']) || count($variables['parents']); |
11 | 14 |
|
... | ... | |
39 | 42 |
$variables['forum_legend'] = theme('advanced_forum_forum_legend'); |
40 | 43 |
} |
41 | 44 |
else { |
42 |
// Grab the forum description and make it available to the template file |
|
45 |
// Grab the forum description and make it available to the template file.
|
|
43 | 46 |
$forum = taxonomy_term_load($tid); |
44 | 47 |
$variables['forum_description'] = $forum->description; |
45 | 48 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules