You are here

function theme_wikitools_page_moved in Wikitools 5

Same name and namespace in other branches
  1. 6 wikitools.pages.inc \theme_wikitools_page_moved()
  2. 7 wikitools.pages.inc \theme_wikitools_page_moved()
1 theme call to theme_wikitools_page_moved()
wikitools_handle_request in ./wikitools.module
Menu callback for wiki path. This function is called if a page without an alias is called below the wiki path.

File

./wikitools.module, line 774
A non-intrusive module to have some wiki-like behaviour.

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;
}