function theme_wikitools_search_notice in Wikitools 5
Same name and namespace in other branches
- 6 wikitools.pages.inc \theme_wikitools_search_notice()
- 7 wikitools.pages.inc \theme_wikitools_search_notice()
3 theme calls to theme_wikitools_search_notice()
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;
}