function follow_build_url in Follow 5
Same name and namespace in other branches
- 6 follow.module \follow_build_url()
- 7.2 follow.inc \follow_build_url()
- 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 436 - 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;
}