You are here

function farm_livestock_farm_log_categories_populate in farmOS 7

Implements hook_farm_log_categories_populate().

File

modules/farm/farm_livestock/farm_livestock.module, line 62

Code

function farm_livestock_farm_log_categories_populate($log) {
  $categories = array();
  if (in_array($log->type, array(
    'farm_birth',
    'farm_medical',
  ))) {
    $categories[] = 'Animals';
  }
  return $categories;
}