You are here

function farm_movement_restws_field_collection_info in farmOS 7

Implements hook_restws_field_collection_info().

File

modules/farm/farm_movement/farm_movement.module, line 142
Farm movement.

Code

function farm_movement_restws_field_collection_info() {
  return array(
    'field_farm_movement' => array(
      'alias' => 'movement',
      'label' => t('Movement'),
      'fields' => array(
        'area' => array(
          'field_name' => 'field_farm_move_to',
          'field_label' => t('Area'),
          'field_type' => 'taxonomy_term',
          'field_value' => 'tid',
          'multiple' => TRUE,
        ),
        'geometry' => array(
          'field_name' => 'field_farm_geofield',
          'field_label' => t('Geometry'),
          'field_type' => 'text',
          'field_value' => 'geom',
        ),
      ),
    ),
  );
}