Remove dashboard map pane.

This commit is contained in:
Michael Stenta 2020-02-07 11:34:14 -05:00
parent 40359f7b7a
commit 59abbb1304
2 changed files with 2 additions and 24 deletions

View File

@ -4,27 +4,6 @@
* Farm dashboard hooks implemented by farm calendar module.
*/
/**
* Implements hook_farm_dashboard_panes().
*/
function farm_area_farm_dashboard_panes() {
return array(
'farm_area_map' => array(
'title' => t('Map'),
'callback' => 'farm_area_dashboard_map',
'group' => 'map',
),
);
}
/**
* Date dashboard callback.
*/
function farm_area_dashboard_map() {
$build = farm_map_build('farm_areas');
return drupal_render($build);
}
/**
* Implements hook_farm_dashboard_metrics().
*/

View File

@ -481,8 +481,8 @@ function farm_theme_preprocess_page(&$vars) {
$current_path = current_path();
if ($current_path == 'farm') {
// Only proceed if the map group exists.
if (!empty($vars['page']['content']['system_main']['map'])) {
// Only proceed if the metrics group exists.
if (!empty($vars['page']['content']['system_main']['metrics'])) {
// Get a list of groups (element children).
$groups = element_children($vars['page']['content']['system_main']);
@ -500,7 +500,6 @@ function farm_theme_preprocess_page(&$vars) {
// Move the map and metrics panes to the right column (and remove them
// from the groups list).
$right_panes = array(
'map',
'metrics',
);
foreach ($right_panes as $pane) {