You are here

function farm_crop_farm_ui_entity_views in farmOS 7

Implements hook_farm_ui_entity_views().

File

modules/farm/farm_crop/farm_crop.module, line 99

Code

function farm_crop_farm_ui_entity_views($entity_type, $bundle, $entity) {
  $views = array();

  // If the entity is a taxonomy_term...
  if ($entity_type == 'taxonomy_term') {
    switch ($entity->vocabulary_machine_name) {

      // Farm crop family.
      case 'farm_crop_families':
        $views[] = 'farm_crops';
        break;
    }
  }
  return $views;
}