function getlocations_fields_plugin_style_streetview::init in Get Locations 7
Same name and namespace in other branches
- 7.2 modules/getlocations_fields/views/getlocations_fields_plugin_style_streetview.inc \getlocations_fields_plugin_style_streetview::init()
If this view is displaying an entity, save the entity type and info.
Overrides views_plugin_style::init
File
- modules/
getlocations_fields/ views/ getlocations_fields_plugin_style_streetview.inc, line 22 - getlocations_fields_plugin_style_streetview.inc @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Class
- getlocations_fields_plugin_style_streetview
- Getlocations style plugin to render a row as a google streetview.
Code
function init(&$view, &$display, $options = NULL) {
parent::init($view, $display, $options);
foreach (entity_get_info() as $key => $info) {
if ($view->base_table == $info['base table']) {
$this->entity_type = $key;
$this->entity_info = $info;
break;
}
}
}