You are here

function location_field_extra_fields in Location 7.3

Implements hook_field_extra_fields().

File

./location.module, line 180
Location module main routines. An implementation of a universal API for location manipulation. Provides functions for postal_code proximity searching, deep-linking into online mapping services. Currently, some options are configured through an…

Code

function location_field_extra_fields() {
  $info = array();
  foreach (node_type_get_types() as $node_type) {
    if (!isset($info['node'][$node_type->type]['form']['locations'])) {
      $info['node'][$node_type->type]['form']['locations'] = array(
        'label' => t('Location'),
        'description' => t('Location module form elements'),
        'weight' => 30,
      );
    }
  }
  return $info;
}