You are here

function farm_metrics_farm_dashboard_panes in farmOS 7

Implements hook_farm_dashboard_panes().

File

modules/farm/farm_metrics/farm_metrics.farm_dashboard.inc, line 10
Farm dashboard hooks implemented by farm_metrics module.

Code

function farm_metrics_farm_dashboard_panes() {
  $panes = array();
  if (user_access('access farm metrics')) {
    $panes['farm_metrics'] = array(
      'title' => t('Metrics'),
      'callback' => 'farm_metrics_dashboard_pane',
      'group' => 'metrics',
    );
  }
  return $panes;
}