You are here

function getlocations_get_types in Get Locations 7

Same name and namespace in other branches
  1. 6.2 getlocations.module \getlocations_get_types()
  2. 6 getlocations.module \getlocations_get_types()
  3. 7.2 getlocations.module \getlocations_get_types()

Function to fetch node types

Return value

Returns array of node types supported by the current supported locative module

16 calls to getlocations_get_types()
getlocations_fields_field_formatter_view in modules/getlocations_fields/getlocations_fields.module
Implements hook_field_formatter_view(). Build a renderable array for a field value.
getlocations_get_markertypes in ./getlocations.module
Function to fetch list of markers
getlocations_leaflet_entity_type_map in modules/getlocations_leaflet/getlocations_leaflet.module
Function
getlocations_leaflet_field_formatter_view in modules/getlocations_leaflet/getlocations_leaflet.module
Implements hook_field_formatter_view(). Build a renderable array for a field value.
getlocations_leaflet_plugin_style::options_form in modules/getlocations_leaflet/views/getlocations_leaflet_plugin_style.inc
Options form

... See full list

File

./getlocations.module, line 2405
getlocations.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_get_types() {
  $options = array();
  foreach (node_type_get_types() as $type => $object) {
    if (getlocations_check_node($type)) {
      $options[$type] = $object->name;
    }
  }
  return $options;
}