You are here

function ip_geoloc_debug in IP Geolocation Views & Maps 8

Same name and namespace in other branches
  1. 7 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

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

12 calls to ip_geoloc_debug()
IpGeoLocAPI::outputMapMultiLocation in src/Services/IpGeoLocAPI.php
Outputs an HTML div placeholder into which will be injected a Google map.
IpGeoLocAPI::reverseGeocode in src/Services/IpGeoLocAPI.php
Uses the Google webservice to retrieve address information based on lat/long.
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_reverse_geocode in ./ip_geoloc_api.inc
Uses the Google webservice to retrieve address information based on lat/long.

... See full list

3 string references to 'ip_geoloc_debug'
AdminConfigureForm::buildForm in src/Form/AdminConfigureForm.php
Form constructor.
IpGeoLocGlobal::debugFlag in src/Services/IpGeoLocGlobal.php
Returns whether debug is on for the current user.
ip_geoloc_debug_flag in ./ip_geoloc.module
Returns whether debug is on for the current user.

File

./ip_geoloc.module, line 811
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);
  }
}