You are here

farm_asset_children.module in farmOS 7

File

modules/farm/farm_asset/farm_asset_children/farm_asset_children.module
View 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,
      ),
    );
  }
}