You are here

function theme_wikitools_search_notice in Wikitools 5

Same name and namespace in other branches
  1. 6 wikitools.pages.inc \theme_wikitools_search_notice()
  2. 7 wikitools.pages.inc \theme_wikitools_search_notice()
3 theme calls to theme_wikitools_search_notice()
theme_wikitools_page_does_not_exist in ./wikitools.module
theme_wikitools_page_found in ./wikitools.module
theme_wikitools_page_moved in ./wikitools.module

File

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

Code

function theme_wikitools_search_notice($page_name) {
  $output = '';
  if (module_exists('search') && user_access('search content') && wikitools_node_search()) {
    $output .= '<p>' . t('You can <a href="@url">search for %page_name</a>', array(
      '@url' => wikitools_search_url($page_name),
      '%page_name' => $page_name,
    )) . '</p>';
  }
  return $output;
}