function template_preprocess_campaignmonitor_block_content in Campaign Monitor 6.3
Same name and namespace in other branches
- 6 campaignmonitor.module \template_preprocess_campaignmonitor_block_content()
- 6.2 campaignmonitor.module \template_preprocess_campaignmonitor_block_content()
Implementation of preprocess_campaignmontor_block_content(). Which adds a newsletter archive link, if the archive URL is defined and user access is granted.
File
- ./
campaignmonitor.module, line 545 - Module that plugs in Campaign Monitor functionality to your Drupal web site. For Campaign Monitor information see: http://www.campaignmonitor.com/
Code
function template_preprocess_campaignmonitor_block_content(&$variables) {
$variables['form'] = drupal_get_form('campaignmonitor_subscribe_form', $variables['list_id']);
$past_campaign_url = variable_get(CM_PAST_CAMPAIGN_URL, FALSE);
if (user_access('access archive') && $past_campaign_url) {
$variables['archive_link'] = l(t('Newsletter Archive'), 'newsletter_archive');
}
}