Add the Metrics block to the dashboard's second region.

This commit is contained in:
Michael Stenta 2021-06-07 11:20:38 -04:00
parent 635e2d0309
commit 975370b12c
2 changed files with 21 additions and 0 deletions

View File

@ -3,3 +3,5 @@ description: Adds a dashboard pane with high-level farm metrics.
type: module
package: farmOS UI
core_version_requirement: ^9
dependencies:
- farm:farm_ui_dashboard

View File

@ -0,0 +1,19 @@
<?php
/**
* @file
* The farmOS UI Metrics module.
*/
/**
* Implements hook_farm_dashboard_panes().
*/
function farm_ui_metrics_farm_dashboard_panes() {
return [
'metrics' => [
'block' => 'farm_metrics',
'title' => t('Metrics'),
'region' => 'second',
],
];
}