You are here

function template_preprocess_campaignmonitor_block_content in Campaign Monitor 6

Same name and namespace in other branches
  1. 6.3 campaignmonitor.module \template_preprocess_campaignmonitor_block_content()
  2. 6.2 campaignmonitor.module \template_preprocess_campaignmonitor_block_content()

Block template preprocessor

File

./campaignmonitor.module, line 352

Code

function template_preprocess_campaignmonitor_block_content(&$variables) {
  $variables['form'] = drupal_get_form('campaignmonitor_general_form');
  if (user_access('access archive')) {
    $variables['archive_link'] = l('Newsletter Archive', 'newsletter_archive');
  }
  else {
    $variables['archive_link'] = '';
  }
}