You are here

function theme_wikitools_page_found in Wikitools 7

Same name and namespace in other branches
  1. 5 wikitools.module \theme_wikitools_page_found()
  2. 6 wikitools.pages.inc \theme_wikitools_page_found()

@todo Please document this function.

See also

http://drupal.org/node/1354

1 theme call to theme_wikitools_page_found()
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 125
Page callbacks for wikitools pages.

Code

function theme_wikitools_page_found($variables) {
  $page_name = $variables['page_name'];
  $found_nodes = $variables['found_nodes'];
  $output = '<p>' . t('Multiple pages have this name:') . '</p>';
  foreach ($found_nodes as $info) {
    $node = node_load($info->nid);
    $output .= node_view($node, TRUE, FALSE, FALSE);
  }
  $output .= theme('wikitools_search_notice', array(
    'page_name' => $page_name,
  ));
  if (!wikitools_enforce_unique_titles()) {
    $output .= theme('wikitools_create_notice', array(
      'page_name' => $page_name,
    ));
  }
  return $output;
}