You are here

function theme_scs_node_output in Simplenews Content Selection 7

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

Each selected node goes through this function to create a part of the newsletter body

Parameters

$node Array The node, as an array (WTF???):

1 theme call to theme_scs_node_output()
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 52
Select Drupal content to create a newsletter

Code

function theme_scs_node_output($node) {
  $output = '<div id="node_' . $node['nid'] . '">';
  $output .= '<h1>' . $node['title'] . '</h1>';
  $output .= '<p>' . $node['body'][LANGUAGE_NONE][0]['value'] . '</p>';
  $output .= '<p>' . l(t('Read more'), 'node/' . $node['nid']) . '</p>';
  $output .= '</div>';
  return $output;
}