Issue #2659994: Reorganize menu structure
This commit is contained in:
parent
ef040e1c65
commit
e6dc37d8cc
|
@ -32,7 +32,8 @@ function farm_sensor_farm_asset_breadcrumb($farm_asset) {
|
|||
// If the asset is a sensor, add a link to the sensors list.
|
||||
$breadcrumb = array();
|
||||
if ($farm_asset->type == 'sensor') {
|
||||
$breadcrumb[] = l(t('Sensors'), 'farm/sensors');
|
||||
$breadcrumb[] = l(t('Assets'), 'farm/assets');
|
||||
$breadcrumb[] = l(t('Sensors'), 'farm/assets/sensors');
|
||||
}
|
||||
return $breadcrumb;
|
||||
}
|
||||
|
|
|
@ -173,7 +173,7 @@ function farm_sensor_views_default_views() {
|
|||
|
||||
/* Display: Page */
|
||||
$handler = $view->new_display('page', 'Page', 'page');
|
||||
$handler->display->display_options['path'] = 'farm/sensors/list';
|
||||
$handler->display->display_options['path'] = 'farm/assets/sensors/list';
|
||||
$handler->display->display_options['menu']['type'] = 'default tab';
|
||||
$handler->display->display_options['menu']['title'] = 'Sensors';
|
||||
$handler->display->display_options['menu']['weight'] = '0';
|
||||
|
|
Loading…
Reference in New Issue