From a76a1e1f3f5b641663ef3d00a752ec1cbd1d4ee9 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 24 Apr 2005 16:34:36 +0000 Subject: - Patch 20910 by chx: centralize print theme page. --- modules/system/system.module | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'modules/system') diff --git a/modules/system/system.module b/modules/system/system.module index a5d4133a4..59f542491 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -70,7 +70,7 @@ function system_menu($may_cache) { $items[] = array('path' => 'admin', 'title' => t('administer'), 'access' => user_access('access administration pages'), - 'callback' => 'system_admin_page', + 'callback' => 'watchdog_overview', 'weight' => 9); // Themes: @@ -119,13 +119,6 @@ function system_test() { exit; } -/** - * Menu callback; provides the main page of the administration section. - */ -function system_admin_page() { - watchdog_overview('actions'); -} - /** * Implementation of hook_user(). * @@ -574,7 +567,7 @@ function system_themes() { system_listing_save(); $form = system_theme_listing(); $form .= form_submit(t('Save configuration')); - print theme('page', form($form)); + return form($form); } /** @@ -584,7 +577,7 @@ function system_modules() { system_listing_save(); $form = system_module_listing(); $form .= form_submit(t('Save configuration')); - print theme('page', form($form)); + return form($form); } /** @@ -600,7 +593,7 @@ function system_site_settings($module = NULL) { $form = system_view_general(); } - print theme('page', system_settings_form($form)); + return system_settings_form($form); } /** @@ -711,7 +704,7 @@ function system_theme_settings($key = '') { $form .= form_submit(t('Save configuration')); $form .= form_submit(t('Reset to defaults')); - print theme('page', form($form, 'post', null, array('enctype' => 'multipart/form-data'))); + return form($form, 'post', null, array('enctype' => 'multipart/form-data')); } -- cgit v1.2.3