3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00
farmOS/modules/ui/map/farm_ui_map.module

32 lines
656 B
PHP

<?php
/**
* @file
* The farmOS UI Map module.
*/
/**
* Implements hook_farm_dashboard_panes().
*/
function farm_ui_map_farm_dashboard_panes() {
return [
'dashboard_map' => [
'block' => 'dashboard_map',
],
];
}
/**
* Implements hook_module_implements_alter().
*/
function farm_ui_map_module_implements_alter(&$implementations, $hook) {
// Ensure that this module's hook_views_pre_render() runs first.
if ($hook == 'views_pre_render') {
$module = 'farm_ui_map';
$group = $implementations[$module];
unset($implementations[$module]);
$implementations = array_merge([$module => $group], $implementations);
}
}