You are here

function kml_block in KML 5

Same name and namespace in other branches
  1. 6 kml.module \kml_block()

Implementation of hook_block()

File

./kml.module, line 451
KML Module

Code

function kml_block($op = 'list', $delta = 0, $edit = array()) {
  switch ($op) {
    case 'list':
      $blocks[0]['info'] = t('KML links for node groupings');
      return $blocks;
    case 'configure':
      $form = array();
      if ($delta == 0) {
      }
      return $form;
    case 'save':
      if ($delta == 0) {
      }
      return;
    case 'view':
    default:
      switch ($delta) {
        case 0:
          $block['subject'] = t('View this content in Google Earth');
          $block['content'] = kml_block_content($delta);
          $block['weight'] = -6;
          $block['enabled'] = 1;
          $block['region'] = 'right';
          break;
      }
      return $block;
  }
}