Full ELMS Learning Network documentation
forum-submitted.tpl.php
×
Error message
User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).- cis7 modules/forum/forum-submitted.tpl.php
- cle7 modules/forum/forum-submitted.tpl.php
- ecd7 modules/forum/forum-submitted.tpl.php
- elmsmedia7 modules/forum/forum-submitted.tpl.php
- harmony7 modules/forum/forum-submitted.tpl.php
- icor7 modules/forum/forum-submitted.tpl.php
- meedjum_blog7 modules/forum/forum-submitted.tpl.php
- mooc7 modules/forum/forum-submitted.tpl.php
Formats a forum post submission string.
The submission string indicates 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. Potentially unsafe. Be sure to clean this data before printing.
See also
template_preprocess_forum_submitted()
theme_forum_submitted()
2 theme calls to forum-submitted.tpl.php
- template_preprocess_forum_list in modules/
forum/ forum.module - Preprocesses variables for forum-list.tpl.php.
- template_preprocess_forum_topic_list in modules/
forum/ forum.module - Preprocesses variables for forum-topic-list.tpl.php.
3 string references to the theme hook from forum-submitted.tpl.php
Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.
- forum_theme in modules/
forum/ forum.module - Implements hook_theme().
- template_preprocess_forum_list in modules/
forum/ forum.module - Preprocesses variables for forum-list.tpl.php.
- template_preprocess_forum_topic_list in modules/
forum/ forum.module - Preprocesses variables for forum-topic-list.tpl.php.
File
modules/forum/forum-submitted.tpl.phpView source
- <?php
-
- /**
- * @file
- * Formats a forum post submission string.
- *
- * The submission string indicates 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. Potentially unsafe. Be
- * sure to clean this data before printing.
- *
- * @see template_preprocess_forum_submitted()
- * @see theme_forum_submitted()
- *
- * @ingroup themeable
- */
- ?>
- <?php if ($time): ?>
- <span class="submitted">
- <?php print t('By !author @time ago', array(
- '@time' => $time,
- '!author' => $author,
- )); ?>
- </span>
- <?php else: ?>
- <?php print t('n/a'); ?>
- <?php endif; ?>
-