You are here

function staticmap_staticmap_field_alter in Static Map 7

Implements hook_staticmap_field_alter().

File

./staticmap.module, line 107
SiteMap module.

Code

function staticmap_staticmap_field_alter(&$fields) {
  $newfields = array(
    'geofield' => array(
      'class' => 'MapFieldGeofield',
      'path' => drupal_get_path('module', 'staticmap') . '/includes',
      'filename' => 'MapFieldGeofield',
      'extension' => 'php',
    ),
    'location' => array(
      'class' => 'MapFieldLocation',
      'path' => drupal_get_path('module', 'staticmap') . '/includes',
      'filename' => 'MapFieldLocation',
      'extension' => 'php',
    ),
    'getlocations_fields' => array(
      'class' => 'mapFieldGetlocations',
      'path' => drupal_get_path('module', 'staticmap') . '/includes',
      'filename' => 'mapFieldGetlocations',
      'extension' => 'php',
    ),
  );
  $fields = array_merge($fields, $newfields);
}