You are here

function wikitools_wikilink_url in Wikitools 6.2

Same name and namespace in other branches
  1. 5 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

File

./wikitools.module, line 336
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,
    ));
  }
}