Definition

theme_links($links, $delimiter = ' | ')
drupal/includes/theme.inc, line 494

Description

Return a themed set of links.

Parameters

$links An array of links to be themed.

$delimiter A string used to separate the links.

Return value

A string containing the themed links.

Related topics

Namesort iconDescription
Themeable functionsFunctions that display HTML, and which can be customized by themes.

Code

function theme_links($links, $delimiter = ' | ') {
  if (!is_array($links)) {
    return '';
  }
  return implode($delimiter, $links);
}