You are here

function route_planner_block_view in Route Planner 7

Implements hook_block_view().

File

./route_planner.module, line 90
The Route Planner module create blocks to show a route from any address to a fixed point.

Code

function route_planner_block_view($delta) {
  switch ($delta) {
    case 'route_target':
      $block['content'] = route_planner_get_address_form();
      break;
    case 'map':
      $block['content'] = route_planner_map_display();
      break;
  }
  return $block;
}