You are here

function farm_ledger_farm_ui_entities in farmOS 7

Implements hook_farm_ui_entities().

File

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

Code

function farm_ledger_farm_ui_entities() {
  return array(
    'log' => array(
      'farm_purchase' => array(
        'label' => t('Purchase'),
        'label_plural' => t('Purchases'),
        'view' => 'farm_log_purchase',
        'areas' => TRUE,
        'weight' => 90,
      ),
      'farm_sale' => array(
        'label' => t('Sale'),
        'label_plural' => t('Sales'),
        'view' => 'farm_log_sale',
        'areas' => TRUE,
        'weight' => 90,
      ),
    ),
  );
}