You are here

function template_preprocess_simplenews_multi_block in Simplenews 6.2

Same name and namespace in other branches
  1. 7.2 simplenews.module \template_preprocess_simplenews_multi_block()
  2. 7 simplenews.module \template_preprocess_simplenews_multi_block()

Process variables to format the simplenews newsletter footer.

$variables are empty:

See also

simplenews-multi-block.tpl.php

File

./simplenews.module, line 2520
Simplenews node handling, sent email, newsletter block and general hooks

Code

function template_preprocess_simplenews_multi_block(&$variables) {
  global $user;

  // Block content variables
  $variables['message'] = check_plain(variable_get('simplenews_block_m_multiple', t('Select the newsletter(s) to which you want to subscribe or unsubscribe.')));
  $variables['form'] = drupal_get_form('simplenews_subscriptions_multi_block_form');

  // Additional variables
  $variables['user'] = !empty($user->uid);
}