function theme_wikitools_page_moved in Wikitools 6
Same name and namespace in other branches
- 5 wikitools.module \theme_wikitools_page_moved()
- 7 wikitools.pages.inc \theme_wikitools_page_moved()
1 theme call to theme_wikitools_page_moved()
- wikitools_handle_request in ./
wikitools.pages.inc - Menu callback for wiki path. This function is called if a page without an alias is called below the wiki path.
File
- ./
wikitools.pages.inc, line 133 - Page callbacks for wikitools pages.
Code
function theme_wikitools_page_moved($page_name, $moved_nodes) {
$output = '<p>' . t('The page %page_name has been moved.', array(
'%page_name' => $page_name,
)) . '</p>';
$node = current($moved_nodes);
$output .= '<p>' . t('The new page name is !new_name', array(
'!new_name' => l($node->title, "node/{$node->nid}"),
)) . '</p>';
// Todo: show all moved pages
$output .= theme('wikitools_search_notice', $page_name);
$output .= theme('wikitools_create_notice', $page_name);
return $output;
}