You are here

function ip_geoloc_debug in IP Geolocation Views & Maps 7

Same name and namespace in other branches
  1. 8 ip_geoloc.module \ip_geoloc_debug()

Special debug function: messages selected user names only.

Parameters

string $message: The message string to bue output as a debug message.

string $type: Defaults to 'status'.

Return value

array|null A multidimensional array with keys corresponding to the set message types. If there are no messages set, the function returns NULL.

16 calls to ip_geoloc_debug()
geofieldProximityGeocoderWithHTML5::getSourceValue in views/proximity_plugins/geofieldProximityGeocoderWithHTML5.inc
ip_geoloc_current_location_ajax_recipient in ./ip_geoloc.module
Data recipient for javascript function getLocation().
ip_geoloc_log_errors in ./ip_geoloc.module
Log errors via the watchdog.
ip_geoloc_output_map_multi_location in ./ip_geoloc_api.inc
Outputs an HTML div placeholder into which will be injected a Google map.
ip_geoloc_plugin_style_leaflet::render in views/ip_geoloc_plugin_style_leaflet.inc
Transform the View result in a list of marker locations and render on map.

... See full list

2 string references to 'ip_geoloc_debug'
ip_geoloc_admin_configure in ./ip_geoloc.admin.inc
Menu callback for admin settings.
ip_geoloc_debug_flag in ./ip_geoloc.module
Returns whether debug is on for the current user.

File

./ip_geoloc.module, line 888
IPGV&M is a mapping engine for Views that contain locations of entities and/or visitors. Google Maps, Leaflet and OpenLayers2 maps are all supported. and available through this module. Using a number of optional sources IPGV&M also retrieves…

Code

function ip_geoloc_debug($message, $type = 'status') {
  if (ip_geoloc_debug_flag()) {
    return drupal_set_message($message, $type, FALSE);
  }
}