You are here

function high_contrast_block in High contrast 6

Implementation of hook_block()

File

./high_contrast.module, line 56

Code

function high_contrast_block($op = 'list', $delta = 0, $edit = array()) {
  if ($op == 'list') {
    $blocks[0] = array(
      'info' => t('High contrast switcher'),
    );
    return $blocks;
  }
  elseif ($op == 'view') {
    switch ($delta) {
      case 0:
        $switcher = theme("high_contrast_switcher");
        $block = array(
          'subject' => ' ',
          'content' => $switcher,
        );
        break;
    }
    return $block;
  }
}