Remove dashboard map pane.
This commit is contained in:
parent
40359f7b7a
commit
59abbb1304
|
@ -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().
|
||||
*/
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue