function gotwo_filter_tips in Go - url redirects 5
Same name and namespace in other branches
- 6 gotwo.module \gotwo_filter_tips()
Implementation of hook_filter_tips().
1 call to gotwo_filter_tips()
- gotwo_help in ./
gotwo.module - Implementation of hook_help
File
- ./
gotwo.module, line 35 - 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_filter_tips($delta, $format, $long = false) {
switch ($delta) {
case 0:
if (!$long) {
return t('You can use the <go> tags just like the <a> for nicer urls.');
}
else {
return t('<p>You can use the <go> tags just like the <a>. The url will be rewritten to in internal URL that will eventually redirect the user to the given url. Depending on the settings the url will contain an identifying label constructed from the provided url. Alternatively you can provide a label by means of the "title" argument.</p>
<p>For example: <pre><go href="http://example.org/some/page">Some page example</go></pre> produces: <pre><a href="go/example.org/some/page">Some page example</a></pre>Or like this:<pre><go href="http://example.org/some/page" title="Some page">Some page example</go></pre> produces: <pre><a href="go/some_page" title="Some page">Some page example</a></pre></p>');
}
break;
}
}