You are here

function getlocations_leaflet_regenerate_markers in Get Locations 7

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

Function

Return value

Returns

2 calls to getlocations_leaflet_regenerate_markers()
getlocations_leaflet_flush_caches in modules/getlocations_leaflet/getlocations_leaflet.module
Implements hook_flush_caches().
_getlocations_leaflet_rebuild_marker_js_submit in modules/getlocations_leaflet/getlocations_leaflet.module
Rebuild marker js.

File

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

Code

function getlocations_leaflet_regenerate_markers() {
  $icons = getlocations_leaflet_get_icondata(TRUE);
  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;
  }
  return TRUE;
}