Same name and namespace in other branches
  1. 10 core/modules/forum/forum.module \template_preprocess_forum_submitted()
  2. 7.x modules/forum/forum.module \template_preprocess_forum_submitted()
  3. 8.9.x core/modules/forum/forum.module \template_preprocess_forum_submitted()
  4. 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) : '';
}