You are here

function farm_equipment_farm_ui_entities in farmOS 7

Implements hook_farm_ui_entities().

File

modules/farm/farm_equipment/farm_equipment.module, line 12

Code

function farm_equipment_farm_ui_entities() {
  return array(
    'farm_asset' => array(
      'equipment' => array(
        'label' => t('Equipment'),
        'label_plural' => t('Equipment'),
        'view' => 'farm_equipment',
      ),
    ),
    'log' => array(
      'farm_maintenance' => array(
        'label' => t('Maintenance'),
        'label_plural' => t('Maintenance'),
        'view' => 'farm_log_maintenance',
        'farm_asset' => 'equipment',
        'weight' => 20,
      ),
    ),
  );
}