You are here

function farm_plan_farm_ui_entity_views in farmOS 7

Implements hook_farm_ui_entity_views().

File

modules/farm/farm_plan/farm_plan.module, line 386
Farm plan - A farm plan entity type.

Code

function farm_plan_farm_ui_entity_views($entity_type, $bundle, $entity) {

  // If the entity is not a plan, bail.
  if (!($entity_type == 'farm_plan')) {
    return array();
  }

  // Display a View of logs associated with the plan.
  return array(
    'farm_plan_logs',
  );
}