You are here

function getlocations_mapquest_marker_list in Get Locations 7.2

Same name and namespace in other branches
  1. 7 modules/getlocations_mapquest/getlocations_mapquest.module \getlocations_mapquest_marker_list()

Function

Return value

Returns

File

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

Code

function getlocations_mapquest_marker_list() {
  $icons = getlocations_mapquest_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_mapquest', 'No markers found.', array(), WATCHDOG_ERROR);
    return FALSE;
  }
  $data = array();
  foreach ($icons as $k => $v) {
    $data[$k] = $v['name'];
  }
}