farmOS/modules/farm/farm_log/farm_log_sale/farm_log_sale.module

37 lines
651 B
Plaintext

<?php
/**
* @file
* Code for the Farm Log: Sale feature.
*/
include_once 'farm_log_sale.features.inc';
/**
* Implements hook_farm_ui_entities().
*/
function farm_log_sale_farm_ui_entities() {
return array(
'log' => array(
'farm_sale' => array(
'label' => t('Sale'),
'label_plural' => t('Sales'),
'view' => 'farm_log_sale',
),
),
);
}
/**
* Implements hook_farm_ui_asset_views().
*/
function farm_log_sale_farm_ui_asset_views($farm_asset) {
// Show a list of sales at the top of all asset pages.
return array(
array(
'name' => 'farm_log_sale',
'weight' => 0,
),
);
}