drupal: set day chart as default

This commit is contained in:
Bart Van Der Meerssche 2010-07-22 08:36:07 +00:00
parent 12c70c0120
commit 18e3850145
1 changed files with 5 additions and 5 deletions

View File

@ -73,7 +73,7 @@ function logger_menu() {
'title' => 'your dashboard', // isn't printed as title on the page, therefore resort to drupal_set_title (t('your ecological dashboard')) in ecology_dashboard; 'title' => 'your dashboard', // isn't printed as title on the page, therefore resort to drupal_set_title (t('your ecological dashboard')) in ecology_dashboard;
'description' => 'Configure settings for logging metering values.', 'description' => 'Configure settings for logging metering values.',
'page callback' => '_logger_dashboard', //takes the callback from the MENU_DEFAULT_LOCAL_TASK -> lightest level-two menu 'page callback' => '_logger_dashboard', //takes the callback from the MENU_DEFAULT_LOCAL_TASK -> lightest level-two menu
'page arguments' => array('electricity', 'main', 'hour'), 'page arguments' => array('electricity', 'main', 'day'),
'access callback' => TRUE, 'access callback' => TRUE,
'type' => MENU_CALLBACK, 'type' => MENU_CALLBACK,
); );
@ -90,7 +90,7 @@ function logger_menu() {
'page callback' => '_logger_dashboard', 'page callback' => '_logger_dashboard',
'page arguments' => array('electricity', 'main', 'hour'), 'page arguments' => array('electricity', 'main', 'hour'),
'access callback' => TRUE, 'access callback' => TRUE,
'type' => MENU_DEFAULT_LOCAL_TASK, 'type' => MENU_LOCAL_TASK,
'weight' => 0, 'weight' => 0,
); );
$items['logger/electricity/day'] = array( $items['logger/electricity/day'] = array(
@ -98,7 +98,7 @@ function logger_menu() {
'page callback' => '_logger_dashboard', 'page callback' => '_logger_dashboard',
'page arguments' => array('electricity', 'main', 'day'), 'page arguments' => array('electricity', 'main', 'day'),
'access callback' => TRUE, 'access callback' => TRUE,
'type' => MENU_LOCAL_TASK, 'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 1, 'weight' => 1,
); );
$items['logger/electricity/month'] = array( $items['logger/electricity/month'] = array(
@ -138,7 +138,7 @@ function logger_menu() {
'page callback' => '_logger_dashboard', 'page callback' => '_logger_dashboard',
'page arguments' => array('water', 'main', 'hour'), 'page arguments' => array('water', 'main', 'hour'),
'access callback' => TRUE, 'access callback' => TRUE,
'type' => MENU_DEFAULT_LOCAL_TASK, 'type' => MENU_LOCAL_TASK,
'weight' => 0, 'weight' => 0,
); );
$items['logger/water/day'] = array( $items['logger/water/day'] = array(
@ -146,7 +146,7 @@ function logger_menu() {
'page callback' => '_logger_dashboard', 'page callback' => '_logger_dashboard',
'page arguments' => array('water', 'main', 'day'), 'page arguments' => array('water', 'main', 'day'),
'access callback' => TRUE, 'access callback' => TRUE,
'type' => MENU_LOCAL_TASK, 'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 1, 'weight' => 1,
); );
$items['logger/water/month'] = array( $items['logger/water/month'] = array(