You are here

function openlayers_openlayers_map_content_type_content_types in Openlayers 7.2

Return all content types available.

1 string reference to 'openlayers_openlayers_map_content_type_content_types'
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 20
OpenLayers Map Content Type. Displays a Map.

Code

function openlayers_openlayers_map_content_type_content_types($plugin) {
  $types = array();
  $maps = openlayers_maps();
  foreach ($maps as $map) {
    $types[$map->name] = array(
      'map' => $map->name,
      'title' => $map->title,
      'description' => $map->description,
      'category' => t('OpenLayers Maps'),
      'icon' => 'icon_openlayers_map.png',
    );
  }
  return $types;
}