You are here

function farm_area_details_json in farmOS 7

Menu callback that returns rendered area details as JSON.

1 string reference to 'farm_area_details_json'
farm_area_menu in modules/farm/farm_area/farm_area.module
Implements hook_menu().

File

modules/farm/farm_area/farm_area.module, line 222

Code

function farm_area_details_json($aid) {
  $area_details = farm_area_get_details($aid);
  drupal_json_output($area_details);
  drupal_exit();
}