You are here

function template_preprocess_forum_submitted in Drupal 6

Same name and namespace in other branches
  1. 8 core/modules/forum/forum.module \template_preprocess_forum_submitted()
  2. 7 modules/forum/forum.module \template_preprocess_forum_submitted()
  3. 9 core/modules/forum/forum.module \template_preprocess_forum_submitted()

Process variables to format submission info for display in the forum list and topic list.

$variables will contain: $topic

See also

forum-submitted.tpl.php

theme_forum_submitted()

File

modules/forum/forum.module, line 932
Enable threaded discussions about general topics.

Code

function template_preprocess_forum_submitted(&$variables) {
  $variables['author'] = isset($variables['topic']->uid) ? theme('username', $variables['topic']) : '';
  $variables['time'] = isset($variables['topic']->timestamp) ? format_interval(time() - $variables['topic']->timestamp) : '';
}