farm_map.block.inc in farmOS 7
Farm map block code.
File
modules/farm/farm_map/farm_map.block.incView 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
Name | Description |
---|---|
farm_map_block_info | Implements hook_block_info(). |
farm_map_block_view | Implements hook_block_view(). |