You are here

function newsletter_block_configure in Newsletter 7

Implements hook_block_configure().

File

./newsletter.module, line 526
Defines menu items for newsletter administration, permissions and basic drupal hooks.

Code

function newsletter_block_configure($delta = '') {
  $form = array();
  if ($delta == 'newsletter_subscribe') {
    $form['newsletter_block_prefix'] = array(
      '#type' => 'textarea',
      '#title' => t('Text before email address'),
      '#description' => t('This text will appear above the email address in the subscribe block.'),
      '#default_value' => variable_get('newsletter_block_prefix'),
    );
    $form['newsletter_block_suffix'] = array(
      '#type' => 'textarea',
      '#title' => t('Text after email address'),
      '#description' => t('This text will appear below the email address in the subscribe block.'),
      '#default_value' => variable_get('newsletter_block_suffix'),
    );
  }
  return $form;
}