function template_preprocess_forum_submitted
Same name and namespace in other branches
- 6.x drupal-6.x/modules/forum/forum.module \template_preprocess_forum_submitted()
Preprocesses variables for forum-submitted.tpl.php.
The submission information will be displayed in the forum list and topic list.
Parameters
$variables: An array containing the following elements:
- topic: The topic object.
See also
theme_forum_submitted()
Archivo
- drupal-7.x/
modules/ forum/ forum.module, line 1273 - Provides discussion forums.
Código
function template_preprocess_forum_submitted(&$variables) {
$variables['author'] = isset($variables['topic']->uid) ? theme('username', array('account' => $variables['topic'])) : '';
$variables['time'] = isset($variables['topic']->created) ? format_interval(REQUEST_TIME - $variables['topic']->created) : '';
}