/[drupal]/contributions/modules/administration/default.inc
ViewVC logotype

Diff of /contributions/modules/administration/default.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.23, Tue Feb 21 01:42:12 2006 UTC revision 1.24, Fri Jun 23 02:02:02 2006 UTC
# Line 77  function _administration_menu_config() { Line 77  function _administration_menu_config() {
77          'description' => "Configure my site's module settings",          'description' => "Configure my site's module settings",
78        ),        ),
79         // NOTE: We need to give THIS menu item a different callback TOO         // NOTE: We need to give THIS menu item a different callback TOO
80        'admin' => array(        'admin/uncategorized' => array(
81          'title' => 'other',          'title' => 'other',
82          'description' => "Configure uncategorized items for modules",          'description' => "Configure uncategorized items for modules",
83        ),        ),
# Line 251  function _administration_menu_config() { Line 251  function _administration_menu_config() {
251    );    );
252    
253    // overrides to repoint a couple of settings.    // overrides to repoint a couple of settings.
254    $config['section']['admin'] = array(    $config['section']['admin/uncategorized'] = array(
255      'title' => t('configure modules'),      'title' => t('configure modules'),
256      'description' => t("Configure uncategorized module settings"),      'description' => t("Configure uncategorized module settings"),
257      'callback'    => '_administration_sub_dashboard_page',      'callback'    => '_administration_sub_dashboard_page',
# Line 544  function theme_administration_statistics Line 544  function theme_administration_statistics
544    return $output;    return $output;
545  }  }
546    
547  function administration_form_default($form, $edit = ''){  function administration_form_default($form){
548    $form['default'] = array(    $form['default'] = array(
549      '#type' => 'fieldset', '#title' => t('Settings for default dashboard theme'),      '#type' => 'fieldset', '#title' => t('Settings for default dashboard theme'),
550      '#collapsible' => FALSE, '#collapsed' => FALSE      '#collapsible' => FALSE, '#collapsed' => FALSE
# Line 555  function administration_form_default($fo Line 555  function administration_form_default($fo
555      '#default_value' => variable_get('administration_show_menu_icons', FALSE),      '#default_value' => variable_get('administration_show_menu_icons', FALSE),
556      '#tree' => FALSE      '#tree' => FALSE
557    );    );
   $form['buttons']['submit'] = array('#type' => 'submit', '#value' => t('Save configuration') );  
   $form['buttons']['reset'] = array('#type' => 'submit', '#value' => t('Reset to defaults') );  
558    return $form;    return $form;
559  }  }
560    
561  function administration_form_submit_default($formid, $form_values) {  function administration_form_submit_default($formid, $form_values) {
562    $op = isset($_POST['op']) ? $_POST['op'] : '';    variable_set('administration_show_menu_icons', $form_values['menu_icons']);
   
   if ($op == 'Save configuration') {  
     variable_set('administration_show_menu_icons', $form_values['menu_icons']);  
   }  
   else {  
     if ($op == 'Reset to defaults') {  
       variable_set('administration_show_menu_icons', FALSE);  
     }  
   }  
563  }  }
564    
565  function _administration_get_icon_file_name($path) {  function _administration_get_icon_file_name($path) {
# Line 697  function administration_watchdog_overvie Line 686  function administration_watchdog_overvie
686    $output .= '<div class=panel-logs>';    $output .= '<div class=panel-logs>';
687    $output .= theme('table', $header, $rows);    $output .= theme('table', $header, $rows);
688    $output .= '</div>';    $output .= '</div>';
689    $output .= theme('pager', NULL, $page_size, 0, tablesort_pager());    $output .= theme('pager', NULL, $page_size, 0);
690    
691    return $output;    return $output;
692  }  }

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

  ViewVC Help
Powered by ViewVC 1.1.2