Fix for Code

  1. /*
  2.  * Implementation of hook_block
  3.  */
  4. function ahc_block($op = 'list', $delta = 0) {
  5.     $block = array();
  6.  
  7.     switch($op) {
  8.         case 'list':
  9.             $block[0]['info'] = t('Map Legend');
  10.             $block[1]['info'] = t('Map Controls');
  11.             $block[2]['info'] = t('Map Toggles');
  12.             break;
  13.         case 'view':
  14.             switch($delta) {
  15.                 case 0:
  16.                     $block['content'] = theme('map_legend');
  17.                     break;
  18.                 case 1:
  19.                     $block['content'] = theme('map_controls');
  20.                     break;
  21.                 case 2:
  22.                     $block['content'] = theme('map_toggles');
  23.                     break;
  24.             }
  25.             break;
  26.     }
  27.  
  28.     return $block;
  29. }

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.