You are here

function leaflet_demo_block_view in Leaflet More Maps 7

Implements hook_block_view().

File

leaflet_demo/leaflet_demo.module, line 47
"Leaflet Demo" showcases in a block all Leaflet-powered maps enabled on your Drupal site.

Code

function leaflet_demo_block_view($delta = '') {
  $block = array();
  switch ($delta) {
    case 'leaflet_maps':
      $block['subject'] = t('Examples of available maps');
      $block['content'] = drupal_get_form('leaflet_demo_map_parameters_form');
      break;
  }
  return $block;
}