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