You are here

function theme_spaces_node_links in Spaces 5.2

Theme function for spaces_node_links

1 theme call to theme_spaces_node_links()
spaces_node_links in ./spaces.module
Generates a set of links for node types associated with the current active contexts.

File

./spaces.module, line 1269

Code

function theme_spaces_node_links($links) {
  $output = '';
  foreach ($links as $link) {
    if ($link['custom']) {
      $output .= l($link['title'], $link['href'], array(
        'class' => 'button',
      ), isset($link['query']) ? $link['query'] : NULL);
    }
    else {
      if (!empty($link)) {
        $output .= l('+ ' . t('Add !type', array(
          '!type' => $link['title'],
        )), $link['href'], array(
          'class' => 'button',
        ), isset($link['query']) ? $link['query'] : NULL);
      }
    }
  }
  return $output;
}