summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-07-08 15:24:30 +0000
committerDries Buytaert <dries@buytaert.net>2004-07-08 15:24:30 +0000
commit898bdeffafe913417951ec214d57ec930ea90812 (patch)
treedaae02095efd8209bd8b213cb1b0a9bacc3bdc31 /modules/node/node.module
parent144c1abb587f7a66e9f03b242ef359d4e0e670f5 (diff)
downloadbrdo-898bdeffafe913417951ec214d57ec930ea90812.tar.gz
brdo-898bdeffafe913417951ec214d57ec930ea90812.tar.bz2
- Marked required fields on the node (story, book, page, blog) and comment
forms using the $required argument of the form_ functions. - Replaced all Optional's and Required's from the taxonomy forms with proper use of the form_ functions. Please check your contributed modules too!
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index c48ec30ee..fd188d34e 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1116,7 +1116,7 @@ function node_validate($node) {
node_invoke($node, 'validate');
node_invoke_nodeapi($node, 'validate');
- $node->validated = true;
+ $node->validated = TRUE;
return $node;
}
@@ -1151,7 +1151,7 @@ function node_form($edit) {
$output .= '<div class="admin">';
$author = form_textfield(t('Authored by'), 'name', $edit->name, 20, 60);
- $author .= form_textfield(t('Authored on'), 'date', $edit->date, 20, 25);
+ $author .= form_textfield(t('Authored on'), 'date', $edit->date, 20, 25, NULL, NULL, TRUE);
$output .= '<div class="authored">';
$output .= form_group(t('Authoring information'), $author);
@@ -1174,7 +1174,7 @@ function node_form($edit) {
// Add the default fields.
$output .= '<div class="standard">';
- $output .= form_textfield(t('Title'), 'title', $edit->title, 60, 128);
+ $output .= form_textfield(t('Title'), 'title', $edit->title, 60, 128, NULL, NULL, TRUE);
// Add the node-type-specific fields.