function _gotwo_get_url in Go - url redirects 7
Same name and namespace in other branches
- 6 gotwo.module \_gotwo_get_url()
Return the GO url for a given link.
1 call to _gotwo_get_url()
- _gotwo_link in ./
gotwo.module - Process callback for the GO filter.
File
- ./
gotwo.module, line 310 - Module that provides easy to use redirection links. A redirection link would be like: http://examples.org/go/a_label http://examples.org/go/123546 http://examples.org/go/or/like/this
Code
function _gotwo_get_url($url, $src = NULL, $flags = GOTWO_CREATE) {
$res = _gotwo_get($url, $src, $flags);
if (!$res) {
return url($url);
}
if (variable_get('gotwo_numeric', FALSE)) {
return url('go/' . $res->gid);
}
return url('go/' . $res->src);
}