| 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 |
), |
), |
| 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', |
| 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 |
| 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) { |
| 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 |
} |
} |