You are here

function getlocations_get_types in Get Locations 7.2

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

Function to fetch node types

Return value

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

1 call to getlocations_get_types()
getlocations_mapquest_field_formatter_view in modules/getlocations_mapquest/getlocations_mapquest.module
Implements hook_field_formatter_view(). Build a renderable array for a field value.

File

./getlocations.module, line 2029
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;
}