You are here

function theme_advanced_forum_shadow_topic in Advanced Forum 6.2

Theme function to create shadow topic reference.

Parameters

$title: Unlinked title of the topic.

$nid: Node id of the topic.

$new_forum: Name of the forum that now contains the topic.

Return value

String to print in place of the title/author info on topic lists.

1 theme call to theme_advanced_forum_shadow_topic()
_template_preprocess_advanced_forum_topic_list_view in includes/template_preprocess_advanced_forum_topic_list_view.inc
@file Holds the contents of a preprocess function moved into its own file to ease memory requirements and having too much code in one file.

File

includes/theme.inc, line 150
Holds theme functions and template preprocesses. Other style related functions are in style.inc

Code

function theme_advanced_forum_shadow_topic($title, $nid, $new_forum) {
  return $title . '<br />' . t('This topic has been moved to "!forum"', array(
    '!forum' => $new_forum,
  )) . ' (' . l(t('View topic'), "node/{$nid}") . ')';
}