You are here

function theme_scs_node_titles in Simplenews Content Selection 7

Same name and namespace in other branches
  1. 6.2 scs.theme.inc \theme_scs_node_titles()

Theme function to add the titles of the selected nodes at top of the newsletter to build the table of contents

Parameters

$variables Array An array containing 'titles':

1 theme call to theme_scs_node_titles()
theme_scs_newsletter_output in ./scs.theme.inc
Theme a complete newsletter, appending each node rendered through theme_scs_node_output() and appending ToC if required

File

./scs.theme.inc, line 68
Select Drupal content to create a newsletter

Code

function theme_scs_node_titles($variables) {
  if (variable_get('scs_format', 'plain') == 'plain') {
    return implode("\n", $variables['titles']);
  }
  else {
    return '<div id="toc">' . theme('item_list', array(
      'items' => $variables['titles'],
    )) . '</div>';
  }
}