You are here

function getlocations_leaflet_marker_list in Get Locations 7

Same name and namespace in other branches
  1. 7.2 modules/getlocations_leaflet/getlocations_leaflet.module \getlocations_leaflet_marker_list()

Function

Return value

Returns

File

modules/getlocations_leaflet/getlocations_leaflet.module, line 1750
getlocations_leaflet.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_leaflet_marker_list() {
  $icons = getlocations_leaflet_get_icondata();
  if (!$icons) {

    // no markers found
    drupal_set_message(t('No markers found, you need to install some markers, please see the project page for details.'), 'error');
    watchdog('getlocations_leaflet', 'No markers found.', array(), WATCHDOG_ERROR);
    return FALSE;
  }
  $data = array();
  foreach ($icons as $k => $v) {
    $data[$k] = $v['name'];
  }
}