function _ip_geoloc_is_no_marker in IP Geolocation Views & Maps 7
Checks if marker color is a good value.
Parameters
mixed $marker_color: The color of the marker.
Return value
bool TRUE if marker color is "0", zero, or FALSE FALSE if marker color equals '' or NULL
1 call to _ip_geoloc_is_no_marker()
- 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.
File
- views/
ip_geoloc_plugin_style_leaflet.inc, line 1769
Code
function _ip_geoloc_is_no_marker($marker_color) {
return isset($marker_color) && ($marker_color === '0' || $marker_color === 0 || $marker_color === FALSE);
}