function getlocations_get_entity_type_from_path in Get Locations 7.2
Same name and namespace in other branches
- 7 getlocations.module \getlocations_get_entity_type_from_path()
Allows for aliases in entity types
3 calls to getlocations_get_entity_type_from_path()
- getlocations_entity_type_map in ./
getlocations.module - Page callback: displays a map.
- getlocations_leaflet_entity_type_map in modules/
getlocations_leaflet/ getlocations_leaflet.module - getlocations_mapquest_entity_type_map in modules/
getlocations_mapquest/ getlocations_mapquest.module - Function
File
- ./
getlocations.module, line 2418 - 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;
}