From 559276162095e907db21dd3da3c1bea13b4b7c62 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Sun, 14 Apr 2002 19:34:04 +0000 Subject: This is a major change to the system, needs more testing! Committing Changes by Moshe Weitzman: - admin_user_account(), user_edit(), and user_view() no longer have any hard code for authentication modules. instead authentication modules implement the _user hook. - fixed a couple 'help' typos. - linked the 'REGISTER' text in the login block to the register page. this page now advertises DA better if site employs DA. - admins may now edit everything about a user account (was a feature request). - user #1 may now login immediately, in addition to receiving his password via email. Other changes: - modules and themes are now enabled/disabled in the administrative / settings / modules | themes pages. Requires SQL update and things must be enabled before your site returns to normal. TODO: enable all functionality. (For now just do UPDATE system SET status = 1;) - removed $themes from conf.php. - added a $theme->system() function where theme can specify settings. All themes in the Drupal CVS have been updated to use this. - added _system hook to modules. TODO: update modules to use this. - changed strange use of sprintf to the usual strtr. The disadvantage of sprintf is that it requires translations to keep the string order, which may not be possible in all languages. - an invalid/nonexisting theme in a user profile will now fallback to the BaseTheme instead of crashing. --- modules/node/node.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/node') diff --git a/modules/node/node.module b/modules/node/node.module index 321299e0e..3bd254eb9 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -458,7 +458,7 @@ function node_admin_edit($node) { $output .= ""; $output .= " "; foreach ($node->revisions as $key => $revision) { - $output .= " "; + $output .= " "; } $output .= "
older revisionsoperations
". sprintf(t("revision #%d revised by %s on %s"), $key, format_name(user_load(array("uid" => $revision["uid"]))), format_date($revision["timestamp"], "small")) . ($revision["history"] ? "
". $revision["history"] ."" : "") ."
nid&revision=$key\">". t("view revision") ."nid&revision=$key\">". t("rollback revision") ."nid&revision=$key\">". t("delete revision") ."
". strtr(t("revision #%r revised by %u on %d"), array("%r" => $key, "%u" => format_name(user_load(array("uid" => $revision["uid"]))), "%d" => format_date($revision["timestamp"], "small"))) . ($revision["history"] ? "
". $revision["history"] ."" : "") ."
nid&revision=$key\">". t("view revision") ."nid&revision=$key\">". t("rollback revision") ."nid&revision=$key\">". t("delete revision") ."
"; } @@ -741,7 +741,7 @@ function node_validate($node, &$error) { $node->uid = $account->uid; } else { - $error["name"] = "
". sprintf(t("The name '%s' does not exist."), $node->name) ."
"; + $error["name"] = "
". strtr(t("The name '%u' does not exist."), array ("%u" => $node->name)) ."
"; } /* @@ -898,7 +898,7 @@ function node_add($type) { foreach (module_list() as $name) { if (module_hook($name, "node") && node_access("create", array("type" => $name))) { $output .= "
  • "; - $output .= " ". module_invoke($name, "node", "name") .""; + $output .= " ". module_invoke($name, "node", "name") .""; $output .= "
    ". module_invoke($name, "node", "description") ."
    "; $output .= "
  • "; } -- cgit v1.2.3