3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00
farmOS/modules/farm/farm_movement/farm_movement.views.inc

25 lines
629 B
PHP

<?php
/**
* @file
* Farm movement views data.
*/
/**
* Implements hook_views_data_alter().
*/
function farm_movement_views_data_alter(&$data) {
$data['farm_asset']['latest_movement'] = array(
'title' => t('Latest movement'),
'help' => t('The latest movement for this farm asset.'),
'relationship' => array(
'title' => t('Latest movement'),
'help' => t('Relate the farm asset to its latest movement.'),
'handler' => 'farm_movement_handler_relationship_location',
'base' => 'field_collection_item',
'base field' => 'item_id',
'label' => t('Latest movement'),
),
);
}