You are here

function farm_group_restws_field_collection_info in farmOS 7

Implements hook_restws_field_collection_info().

File

modules/farm/farm_group/farm_group.module, line 36

Code

function farm_group_restws_field_collection_info() {
  return array(
    'field_farm_membership' => array(
      'alias' => 'membership',
      'label' => t('Group membership'),
      'fields' => array(
        'group' => array(
          'field_name' => 'field_farm_group',
          'field_label' => t('Group'),
          'field_type' => 'farm_asset',
          'field_value' => 'target_id',
          'multiple' => TRUE,
        ),
      ),
    ),
  );
}