Block

/** * Implements hook_block_info(). */ function example_block_info() { $blocks['ad_banner1'] = array( 'info' => t('Ad Banner 1'), ); $blocks['ad_banner2'] = array( 'info' => t('Ad Banner 2'), ); return $blocks; } /** * Implements hook_block_view(). */ function example_block_view($delta = '') { $block = array(); switch ($delta) { case 'ad_banner1': $block['content'] = 'shtuffenins'; break; case 'ad_banner2': $block['content'] = 'shtuffenins2'; break; } return $block; }