summaryrefslogtreecommitdiff
path: root/modules/system/system.admin.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-02-20 13:46:43 +0000
committerDries Buytaert <dries@buytaert.net>2008-02-20 13:46:43 +0000
commit584f3e886a7c9850d53fedaab2c8f3d0249bda10 (patch)
tree8a089ab394e25f3703e9e47912ca242e0550be5d /modules/system/system.admin.inc
parent8e0d6b4690866b3dd39bd4128e9845d9fb79b6fc (diff)
downloadbrdo-584f3e886a7c9850d53fedaab2c8f3d0249bda10.tar.gz
brdo-584f3e886a7c9850d53fedaab2c8f3d0249bda10.tar.bz2
- Patch #30984 by webchick, keith.smith, kkaefer, Crell et al: provide descriptions for permissions on the permission administration page.
Diffstat (limited to 'modules/system/system.admin.inc')
-rw-r--r--modules/system/system.admin.inc21
1 files changed, 1 insertions, 20 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index edfb2a926..9ec72a6d2 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -82,18 +82,6 @@ function system_admin_menu_block_page() {
}
/**
- * Menu callback; Sets whether the admin menu is in compact mode or not.
- *
- * @param $mode
- * Valid values are 'on' and 'off'.
- */
-function system_admin_compact_page($mode = 'off') {
- global $user;
- user_save($user, array('admin_compact_mode' => ($mode == 'on')));
- drupal_goto('admin');
-}
-
-/**
* Menu callback; prints a listing of admin tasks for each installed module.
*/
function system_admin_by_module() {
@@ -1899,14 +1887,7 @@ function theme_admin_page($blocks) {
}
$output = '<div class="admin clear-block">';
- $output .= '<div class="compact-link">';
- if (system_admin_compact_mode()) {
- $output .= l(t('Show descriptions'), 'admin/compact/off', array('title' => t('Expand layout to include descriptions.')));
- }
- else {
- $output .= l(t('Hide descriptions'), 'admin/compact/on', array('title' => t('Compress layout by hiding descriptions.')));
- }
- $output .= '</div>';
+ $output .= theme('system_compact_link');
foreach ($container as $id => $data) {
$output .= '<div class="'. $id .' clear-block">';