You are here

function theme_scs_toc in Simplenews Content Selection 8

Same name and namespace in other branches
  1. 7.2 scs.theme.inc \theme_scs_toc()

Theme the Table of Contents.

1 theme call to theme_scs_toc()
template_preprocess_scs_newsletter in ./scs.theme.inc
Preprocess for scs_newsletter.

File

./scs.theme.inc, line 76
Theming preprocesses

Code

function theme_scs_toc($vars) {
  $titles = array();
  foreach ($vars['nodes'] as $node) {
    $titles[] = $node->title;
  }
  return theme('item_list', array(
    'items' => $titles,
    'title' => t('Table of Contents'),
  ));
}