Programmatically create aliases
cryozot - July 19, 2008 - 05:37
| Project: | Go - url redirects |
| Version: | HEAD |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | by design |
Jump to:
Description
Hi,
I use Go module from the theme to automatically generate redirects for URLs, stored in CCK link fields. To create such a redirect I use following code snippet:
<?php
$url = $node->field_insert_your_field_name_here[0]['url'];
$link = _gotwo_get_url($url);
echo '<a href="' . $link . '">' . $url . '</a>';
?>As I understand function _gotwo_get_url is intended for internal use only and probably will be removed in futher versions. It would be great to have such function as public API for Go module.

#1
There is currently no plan to remove the function... it's internal and this may only mean the parameters may change, but this may also not happen for years... no patch and nobody is working on it.