function getlocations_get_types in Get Locations 6
Same name and namespace in other branches
- 6.2 getlocations.module \getlocations_get_types()
- 7.2 getlocations.module \getlocations_get_types()
- 7 getlocations.module \getlocations_get_types()
5 calls to getlocations_get_types()
- getlocations_get_markertypes in ./
getlocations.module - getlocations_plugin_style_map::options_form in ./
getlocations_plugin_style_map.inc - getlocations_plugin_style_map::option_definition in ./
getlocations_plugin_style_map.inc - getlocations_settings_form in ./
getlocations.admin.inc - Function to display the getlocations admin settings form
- template_preprocess_getlocations_view_map in ./
getlocations.views.inc - Preprocess function for theme_getlocations_view_map().
File
- ./
getlocations.module, line 1060 - Displays locations on a map. for Drupal 6 using version 3 googlemaps API
Code
function getlocations_get_types() {
$options = array();
foreach (node_get_types() as $type => $object) {
if (getlocations_check_node($type)) {
$options[$type] = $object->name;
}
}
return $options;
}