You are here

farm_map.block.inc in farmOS 7

Farm map block code.

File

modules/farm/farm_map/farm_map.block.inc
View source
<?php

/**
 * @file
 * Farm map block code.
 */

/**
 * Implements hook_block_info().
 */
function farm_map_block_info() {
  $blocks['farm_map'] = array(
    'info' => t('Farm Map'),
    'cache' => DRUPAL_NO_CACHE,
  );
  return $blocks;
}

/**
 * Implements hook_block_view().
 */
function farm_map_block_view($delta = '') {
  $block = array();
  if ($delta == 'farm_map') {
    $block['subject'] = NULL;
    $block['content'] = farm_map_build('farm_map');
  }
  return $block;
}

Functions