summaryrefslogtreecommitdiff
path: root/modules/book.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-11-12 11:26:16 +0000
committerDries Buytaert <dries@buytaert.net>2005-11-12 11:26:16 +0000
commitaeed4cd8e4814bb0ed8ad06d581a95b82e2d718b (patch)
tree4a022207fea4b4d7a4a48a6ac20099c3b38e0629 /modules/book.module
parent64a617c208c02b6360d16d0960eebc67839d4dc8 (diff)
downloadbrdo-aeed4cd8e4814bb0ed8ad06d581a95b82e2d718b.tar.gz
brdo-aeed4cd8e4814bb0ed8ad06d581a95b82e2d718b.tar.bz2
- Patch #35644 by webchick: forms API simplificiations.
Diffstat (limited to 'modules/book.module')
-rw-r--r--modules/book.module8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/book.module b/modules/book.module
index ceeeff80d..73bbee3fa 100644
--- a/modules/book.module
+++ b/modules/book.module
@@ -247,7 +247,7 @@ function book_form(&$node) {
'#description' => t('The parent that this page belongs in. Note that pages whose parent is &lt;top-level&gt; are regarded as independent, top-level books.')
);
- $form['title'] = array('#type' => 'textfield', '#title' => t('Title'), '#size' => 60, '#maxlength' => 128, '#required' => TRUE, '#default_value' => $node->title);
+ $form['title'] = array('#type' => 'textfield', '#title' => t('Title'), '#required' => TRUE, '#default_value' => $node->title);
$form['body'] = array(
'#type' => 'textarea', '#title' => t('Body'), '#default_value' => $node->body, '#required' => TRUE
);
@@ -257,7 +257,7 @@ function book_form(&$node) {
'#type' => 'fieldset', '#title' => t('Log message'), '#collapsible' => TRUE, '#collapsed' => TRUE
);
$form['log']['message'] = array(
- '#type' => 'textarea', '#default_value' => $node->log, '#rows' => 5, '#weight' => 18,
+ '#type' => 'textarea', '#default_value' => $node->log, '#weight' => 18,
'#description' => t('An explanation of the additions or updates being made to help other authors understand your motivations.')
);
@@ -322,7 +322,7 @@ function book_outline() {
);
$form['log'] = array(
- '#type' => 'textarea', '#title' => t('Log message'), '#cols' => 60, '#rows' => 5,
+ '#type' => 'textarea', '#title' => t('Log message'),
'#default_value' => $node->log, '#description' => t('An explanation to help other authors understand your motivations to put this post into the book.')
);
@@ -986,7 +986,7 @@ function book_node_visitor_opml_post($node, $depth) {
*/
function book_admin_edit_line($node, $depth = 0) {
$form['#tree'] = TRUE;
- $form[$node->nid]['title'] = array('#type' => 'textfield', '#default_value' => $node->title, '#size' => 60, '#maxlength' => 255);
+ $form[$node->nid]['title'] = array('#type' => 'textfield', '#default_value' => $node->title, '#maxlength' => 255);
$form[$node->nid]['weight'] = array('#type' => 'weight', '#default_value' => $node->weight, '#delta' => 15);
$form['depth'] = array('#value' => $depth);
$form['nid'] = array('#value' => $node->nid);