function getlocations_get_entity_type_from_path in Get Locations 7
Same name and namespace in other branches
- 7.2 getlocations.module \getlocations_get_entity_type_from_path()
Allows for aliases in entity types
2 calls to getlocations_get_entity_type_from_path()
- getlocations_leaflet_entity_type_map in modules/
getlocations_leaflet/ getlocations_leaflet.module - Function
- getlocations_mapquest_entity_type_map in modules/
getlocations_mapquest/ getlocations_mapquest.module - Function
File
- ./
getlocations.module, line 6663 - getlocations.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function getlocations_get_entity_type_from_path($path) {
$entity_type = $path;
// getlocations path => entity_type
$aliases = array(
'term' => 'taxonomy_term',
);
if (isset($aliases[$path])) {
$entity_type = $aliases[$path];
}
return $entity_type;
}