You are here

function locationmap_block_view in Location Map 7

Same name and namespace in other branches
  1. 8.2 locationmap.module \locationmap_block_view()
  2. 7.2 locationmap.module \locationmap_block_view()

Implements hook_block_view().

File

./locationmap.module, line 393

Code

function locationmap_block_view($delta) {
  switch ($delta) {
    case 'image':
      $texttop = variable_get('locationmap_block_text_top');
      $blocktop = $texttop ? '<div id="locationmap-block-text-top">' . $texttop . '</div>' : '';
      $block = locationmap_block_image();
      $block['content'] = $blocktop . $block['content'];
      break;
  }
  return $block;
}