Commit 5f7e2f7a authored by Kjartan's avatar Kjartan
Browse files

- increased the "Authored by" field to max 60 chars to fit the length of valid

  usernames.
parent 36fca092
...@@ -885,7 +885,7 @@ function node_form($edit, $error = NULL) { ...@@ -885,7 +885,7 @@ function node_form($edit, $error = NULL) {
if (user_access("administer nodes")) { if (user_access("administer nodes")) {
$output .= "</td><td align=\"left\" valign=\"top\">"; $output .= "</td><td align=\"left\" valign=\"top\">";
$output .= form_textfield(t("Authored by"), "name", $edit->name, 20, 25, $error["name"]); $output .= form_textfield(t("Authored by"), "name", $edit->name, 20, 60, $error["name"]);
$output .= form_textfield(t("Authored on"), "date", $edit->date, 20, 25, $error["date"]); $output .= form_textfield(t("Authored on"), "date", $edit->date, 20, 25, $error["date"]);
$output .= "<br />"; $output .= "<br />";
$output .= form_select(t("Set public/published"), "status", $edit->status, array(t("Disabled"), t("Enabled"))); $output .= form_select(t("Set public/published"), "status", $edit->status, array(t("Disabled"), t("Enabled")));
...@@ -1073,7 +1073,7 @@ function node_submit($node) { ...@@ -1073,7 +1073,7 @@ function node_submit($node) {
else { else {
$fields = array("nid", "uid" => ($user->uid ? $user->uid : 0), "body", "teaser", "title", "type" => $node->type); $fields = array("nid", "uid" => ($user->uid ? $user->uid : 0), "body", "teaser", "title", "type" => $node->type);
} }
$nid = node_save($node, array_merge($fields, module_invoke($node->type, "save", "update", $node))); $nid = node_save($node, array_merge($fields, module_invoke($node->type, "save", "update", $node)));
/* /*
...@@ -1120,7 +1120,7 @@ function node_submit($node) { ...@@ -1120,7 +1120,7 @@ function node_submit($node) {
else { else {
$fields = array("uid" => ($user->uid ? $user->uid : 0), "body", "comment" => 2, "teaser", "title", "type" => $node->type); $fields = array("uid" => ($user->uid ? $user->uid : 0), "body", "comment" => 2, "teaser", "title", "type" => $node->type);
} }
$nid = node_save($node, array_merge($fields, module_invoke($node->type, "save", "create", $node))); $nid = node_save($node, array_merge($fields, module_invoke($node->type, "save", "create", $node)));
/* /*
......
...@@ -885,7 +885,7 @@ function node_form($edit, $error = NULL) { ...@@ -885,7 +885,7 @@ function node_form($edit, $error = NULL) {
if (user_access("administer nodes")) { if (user_access("administer nodes")) {
$output .= "</td><td align=\"left\" valign=\"top\">"; $output .= "</td><td align=\"left\" valign=\"top\">";
$output .= form_textfield(t("Authored by"), "name", $edit->name, 20, 25, $error["name"]); $output .= form_textfield(t("Authored by"), "name", $edit->name, 20, 60, $error["name"]);
$output .= form_textfield(t("Authored on"), "date", $edit->date, 20, 25, $error["date"]); $output .= form_textfield(t("Authored on"), "date", $edit->date, 20, 25, $error["date"]);
$output .= "<br />"; $output .= "<br />";
$output .= form_select(t("Set public/published"), "status", $edit->status, array(t("Disabled"), t("Enabled"))); $output .= form_select(t("Set public/published"), "status", $edit->status, array(t("Disabled"), t("Enabled")));
...@@ -1073,7 +1073,7 @@ function node_submit($node) { ...@@ -1073,7 +1073,7 @@ function node_submit($node) {
else { else {
$fields = array("nid", "uid" => ($user->uid ? $user->uid : 0), "body", "teaser", "title", "type" => $node->type); $fields = array("nid", "uid" => ($user->uid ? $user->uid : 0), "body", "teaser", "title", "type" => $node->type);
} }
$nid = node_save($node, array_merge($fields, module_invoke($node->type, "save", "update", $node))); $nid = node_save($node, array_merge($fields, module_invoke($node->type, "save", "update", $node)));
/* /*
...@@ -1120,7 +1120,7 @@ function node_submit($node) { ...@@ -1120,7 +1120,7 @@ function node_submit($node) {
else { else {
$fields = array("uid" => ($user->uid ? $user->uid : 0), "body", "comment" => 2, "teaser", "title", "type" => $node->type); $fields = array("uid" => ($user->uid ? $user->uid : 0), "body", "comment" => 2, "teaser", "title", "type" => $node->type);
} }
$nid = node_save($node, array_merge($fields, module_invoke($node->type, "save", "create", $node))); $nid = node_save($node, array_merge($fields, module_invoke($node->type, "save", "create", $node)));
/* /*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment