From 8043cb998f3325731bfab8d82251fa49639aec1d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 20 Apr 2002 11:52:50 +0000 Subject: - Applied Marco's big patch, including contributions from Moshe: + Changed the db_query() API. + Wrapped all links in l(), lm(), la(), ..., drupal_url() functions. + XHTML-ified some HTML. + Wrapped a lot of text in the administrative pages in a t() function. + Replaced all $REQUEST_URI/$PATH_INFOs by request_uri(). + Small bugfixes (eg. bug in book_export_html() and clean-ups (eg. RSS code). + Fixed some bugs in the taxonomy module (eg. tree making bug), added new functionality (eg. new APIs for use by other modules), included Moshe's taxonomy extensions, and some documentation udpates. + ... --- modules/system/system.module | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/system') diff --git a/modules/system/system.module b/modules/system/system.module index a18faad5c..4e4faf397 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -29,11 +29,11 @@ function system_perm() { function system_link($type) { if ($type == "admin" && user_access("administer settings and filters")) { - $links[] = "settings and filters"; + $links[] = la(t("settings and filters"), array("mod" => "system")); } /*if ($type == "admin" && user_access("administer modules and themes")) { - $links[] = "modules and themes"; + $links[] = la(t("modules and themes"), array("mod" => "system", "op" => "modules")); }*/ return $links ? $links : array(); @@ -164,7 +164,7 @@ function system_modules() { $output .= "\n"; $output .= " \n"; foreach ($modules as $name => $module) { - $output .= " \n"; + $output .= " \n"; if (!in_array($name, $required)) { db_query("INSERT INTO system SET name = '$name', type = 'module', filename = '$module[filename]', status = '$module[status]'"); } @@ -243,7 +243,7 @@ function system_admin() { global $edit, $op, $type; if (user_access("administer settings and filters")) { - print "site settings | content filters | modules | themes | help
\n"; + print "".la(t("site settings"), array("mod" => "system", "type" => "options"))." | ".la(t("content filters"), array("mod" => "system", "type" => "filter"))." | ".la(t("modules"), array("mod" => "system", "op" => "modules"))." | ".la(t("themes"), array("mod" => "system", "op" => "themes"))." | ".la(t("help"), array("mod" => "system", "op" => "help"))."
\n"; switch ($op) { case "help": @@ -258,7 +258,7 @@ function system_admin() { break; case "Save theme settings": foreach ($edit as $name => $settings) { - db_query("UPDATE system SET status = '". check_query($settings["status"]) ."', description = '". check_query($settings["description"]) ."' WHERE name = '$name'"); + db_query("UPDATE system SET status = '%s', description = '%s' WHERE name = '$name'", $settings["status"], $settings["description"]); } case "themes": print system_themes(); -- cgit v1.2.3
moduledescriptionstatusoperations
$name". check_output(module_invoke($name, "system", "description")) ."". (in_array($name, $required) ? "Enabled" : form_select("", "status][$name", $module["status"], array(t("Disabled"), t("Enabled")))) ."". (module_hook($name, "page") ? "view" : " ") ."". (module_hook($name, "admin") ? "admin" : " ") ."
$name". check_output(module_invoke($name, "system", "description")) ."". (in_array($name, $required) ? "Enabled" : form_select("", "status][$name", $module["status"], array(t("Disabled"), t("Enabled")))) ."". (module_hook($name, "page") ? lm(t("view"), array("mod" => $name)) : " ") ."". (module_hook($name, "admin") ? la(t("admin"), array("mod" => $name)) : " ") ."