function template_preprocess_forum_submitted in Drupal 6
Same name and namespace in other branches
- 8 core/modules/forum/forum.module \template_preprocess_forum_submitted()
- 7 modules/forum/forum.module \template_preprocess_forum_submitted()
- 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
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) : '';
}