| Versions | |
|---|---|
| 4.7 | theme_links($links, |
| 5 – 6 | theme_links( |
| 7 | theme_links($variables) |
Return a themed set of links.
$links An array of links to be themed.
$delimiter A string used to separate the links.
A string containing the themed links.
includes/
<?php
function theme_links($links, $delimiter = ' | ') {
if (!is_array($links)) {
return '';
}
return implode($delimiter, $links);
}
?>