public function views_plugin_style_geojson::is_entity_views_handler in Views GeoJSON 7
Checks if a field handler class is handled by the entity module.
Parameters
object $field_handler_instance: The field handler instance to check.
Return value
bool TRUE if the field is handled by the entity module views integration.
1 call to views_plugin_style_geojson::is_entity_views_handler()
- views_plugin_style_geojson::options_form in views/
views_plugin_style_geojson.inc - Provide a form for setting options.
File
- views/
views_plugin_style_geojson.inc, line 69 - Views style plugin to render nodes in the GeoJSON format.
Class
- views_plugin_style_geojson
- Implementation of views_plugin_style.
Code
public function is_entity_views_handler($field_handler_instance) {
if (!module_exists('entity')) {
return FALSE;
}
$static_cache =& drupal_static(__METHOD__, array());
$handler_class = get_class($field_handler_instance);
if (!isset($static_cache[$handler_class])) {
$static_cache[$handler_class] = FALSE;
foreach (entity_views_get_field_handlers() as $field_handler) {
if ($field_handler_instance instanceof $field_handler) {
return $static_cache[$handler_class] = TRUE;
}
}
}
return $static_cache[$handler_class];
}