You are here

function follow_build_url in Follow 6

Same name and namespace in other branches
  1. 5 follow.module \follow_build_url()
  2. 7.2 follow.inc \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.module
Loader function for individual links.

File

./follow.module, line 545
Allows users to add links to their social network profiles.

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;
}