function farm_area_page_build in farmOS 7
Implements hook_page_build().
File
- modules/
farm/ farm_area/ farm_area.module, line 231
Code
function farm_area_page_build(&$page) {
// If this is the farm dashboard, display the areas map.
$current_path = current_path();
$map_paths = array(
'farm/areas',
'farm/areas/list',
);
if (in_array($current_path, $map_paths)) {
// Build the map and add it to the page content.
$page['content']['farm_areas'] = farm_map_build('farm_areas');
// Set the weight to -100 so that it appears on top.
$page['content']['farm_areas']['#weight'] = -100;
// Set the content region #sorted flag to FALSE so that it resorts.
$page['content']['#sorted'] = FALSE;
}
}