You are here

function campaignmonitor_block in Campaign Monitor 6

Same name and namespace in other branches
  1. 5.2 campaignmonitor.module \campaignmonitor_block()
  2. 5 campaignmonitor.module \campaignmonitor_block()
  3. 6.3 campaignmonitor.module \campaignmonitor_block()
  4. 6.2 campaignmonitor.module \campaignmonitor_block()

Implementation of hook_block()

File

./campaignmonitor.module, line 66

Code

function campaignmonitor_block($op = 'list', $delta = 0, $edit = array()) {
  switch ($op) {
    case 'list':
      $blocks[0] = array(
        'info' => t('Join newsletter'),
      );
      return $blocks;
    case 'configure':
    case 'save':

      // no additional configuration options
      break;
    case 'view':
    default:
      $block['subject'] = t('Join Newsletter');
      $block['content'] = theme('campaignmonitor_block_content', $delta);
      return $block;
  }
}