forum-submitted.tpl.php in Drupal 6
Same filename and directory in other branches
forum-submitted.tpl.php Default theme implementation to format a simple string indicated when and by whom a topic was submitted.
Available variables:
- $author: The author of the post.
- $time: How long ago the post was created.
- $topic: An object with the raw data of the post. Unsafe, be sure to clean this data before printing.
2 theme calls to forum-submitted.tpl.php
- template_preprocess_forum_list in modules/
forum/ forum.module - Process variables to format a forum listing.
- template_preprocess_forum_topic_list in modules/
forum/ forum.module - Preprocess variables to format the topic listing.
File
modules/forum/forum-submitted.tpl.phpView source
<?php
/**
* @file forum-submitted.tpl.php
* Default theme implementation to format a simple string indicated when and
* by whom a topic was submitted.
*
* Available variables:
*
* - $author: The author of the post.
* - $time: How long ago the post was created.
* - $topic: An object with the raw data of the post. Unsafe, be sure
* to clean this data before printing.
*
* @see template_preprocess_forum_submitted()
* @see theme_forum_submitted()
*/
if ($time) {
?>
<?php
print t('@time ago<br />by !author', array(
'@time' => $time,
'!author' => $author,
));
}
else {
?>
<?php
print t('n/a');
}