You are here

function wikitools_wikilink_url in Wikitools 5

Same name and namespace in other branches
  1. 6.2 wikitools.module \wikitools_wikilink_url()
  2. 6 wikitools.module \wikitools_wikilink_url()
  3. 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.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 717
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, $query);
  }
}