mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
Add the Metrics block to the dashboard's second region.
This commit is contained in:
parent
635e2d0309
commit
975370b12c
2 changed files with 21 additions and 0 deletions
|
@ -3,3 +3,5 @@ description: Adds a dashboard pane with high-level farm metrics.
|
||||||
type: module
|
type: module
|
||||||
package: farmOS UI
|
package: farmOS UI
|
||||||
core_version_requirement: ^9
|
core_version_requirement: ^9
|
||||||
|
dependencies:
|
||||||
|
- farm:farm_ui_dashboard
|
||||||
|
|
19
modules/ui/metrics/farm_ui_metrics.module
Normal file
19
modules/ui/metrics/farm_ui_metrics.module
Normal 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',
|
||||||
|
],
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue