You are here

function hook_farm_area_details in farmOS 7

Provide details about farm areas.

Parameters

int $id: The area id.

Return value

array Returns a render array to add to the area's popup.

Related topics

3 functions implement hook_farm_area_details()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

farm_area_farm_area_details in modules/farm/farm_area/farm_area.farm_area.inc
Implements hook_farm_area_details().
farm_flags_farm_area_details in modules/farm/farm_area/farm_area.farm_area.inc
Implements hook_farm_area_details().
farm_ui_farm_area_details in modules/farm/farm_ui/farm_ui.farm_area.inc
Implements hook_farm_area_details().
1 invocation of hook_farm_area_details()
farm_area_get_details in modules/farm/farm_area/farm_area.module
Generate area details.

File

modules/farm/farm_area/farm_area.api.php, line 48
Hooks provided by farm_area.

Code

function hook_farm_area_details($id) {

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

  // Add "Hello world!" to area details.
  $output[] = array(
    '#type' => 'markup',
    '#markup' => 'Hello world!',
  );

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