function wikitools_wikilink_url in Wikitools 6
Same name and namespace in other branches
- 5 wikitools.module \wikitools_wikilink_url()
 - 6.2 wikitools.module \wikitools_wikilink_url()
 - 7 wikitools.module \wikitools_wikilink_url()
 
Build an url to link to a page.
Parameters
$title: title to link to
$query: an optional query string to append to the link
1 call to wikitools_wikilink_url()
- 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.module, line 321  - A non-intrusive module to have some wiki-like behaviour.
 
Code
function wikitools_wikilink_url($title, $query = NULL) {
  $drupal_path = wikitools_wikilink_drupal_path($title);
  if ($drupal_path) {
    return url($drupal_path, array(
      'query' => $query,
    ));
  }
}