You are here

function follow_build_url in Follow 7.2

Same name and namespace in other branches
  1. 5 follow.module \follow_build_url()
  2. 6 follow.module \follow_build_url()
  3. 7 follow.module \follow_build_url()

Build a url for use in the form.

1 call to follow_build_url()
follow_links_load in ./follow.inc
Loader function for individual links.

File

./follow.inc, line 173
Follow module API and helper functions.

Code

function follow_build_url($path, $options) {
  $url = $path;
  if (!empty($options['query'])) {
    $url .= (strpos($path, '?') !== FALSE ? '&' : '?') . follow_build_query($options['query']);
  }
  if (!empty($options['fragment'])) {
    $url .= '#' . $options['fragment'];
  }
  return $url;
}