You are here

function openlayers_map_content_type_render in Openlayers 7.2

Run-time rendering of the body of the block.

Parameters

$subtype:

$conf: Configuration as done at admin time.

$args:

$context: Context - in this case we don't have any.

Return value

An object with at least title and content members.

1 string reference to 'openlayers_map_content_type_render'
openlayers_openlayers_map_ctools_content_types in plugins/content_types/openlayers_map.inc
@file OpenLayers Map Content Type. Displays a Map.

File

plugins/content_types/openlayers_map.inc, line 50
OpenLayers Map Content Type. Displays a Map.

Code

function openlayers_map_content_type_render($subtype, $conf, $args, $context) {
  $map = openlayers_map_load($subtype);
  $block = new stdClass();
  $block->title = $map->title;
  $block->content = openlayers_render_map($map);
  return $block;
}