farm_asset_children.module in farmOS 7
File
modules/farm/farm_asset/farm_asset_children/farm_asset_children.moduleView source
<?php
/**
* @file
* Code for the Farm Asset Children feature.
*/
include_once 'farm_asset_children.features.inc';
/**
* Implements hook_farm_ui_entity_views().
*/
function farm_asset_children_farm_ui_entity_views($entity_type, $bundle, $entity) {
// Display View of asset children on assets.
if ($entity_type == 'farm_asset') {
return array(
array(
'name' => 'farm_asset_children',
'display' => 'page',
'title' => t('Children'),
'group' => 'assets',
'weight' => 110,
),
);
}
}
Functions
Name | Description |
---|---|
farm_asset_children_farm_ui_entity_views | Implements hook_farm_ui_entity_views(). |