You are here

function farm_area_farm_area_details in farmOS 7

Implements hook_farm_area_details().

File

modules/farm/farm_area/farm_area.farm_area.inc, line 23
Farm Area hooks implemented by the Farm Area module.

Code

function farm_area_farm_area_details($id) {

  // Start a render array.
  $output = array();

  // Load and display the area description.
  $area = taxonomy_term_load($id);
  if (!empty($area->description)) {
    $output['description'] = array(
      '#type' => 'markup',
      '#markup' => '<p><small>' . check_markup($area->description, $area->format) . '</small></p>',
      '#weight' => -99,
    );
  }

  // Return the render array.
  return $output;
}