template_preprocess_forum_submitted

Versions
6 – 7
template_preprocess_forum_submitted(&$variables)

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

@see theme_forum_submitted()

Code

modules/forum/forum.module, line 912

<?php
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) : '';
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.