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