From aeed4cd8e4814bb0ed8ad06d581a95b82e2d718b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 12 Nov 2005 11:26:16 +0000 Subject: - Patch #35644 by webchick: forms API simplificiations. --- modules/aggregator/aggregator.module | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/aggregator') diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index 9cc9dbfdb..b3d58b9e8 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.module @@ -645,8 +645,8 @@ function aggregator_save_item($edit) { } function aggregator_form_category($edit = array()) { - $form['title'] = array('#type' => 'textfield', '#title' => t('Title'), '#default_value' => $edit['title'], '#size' => 60, '#maxlength' => 64); - $form['description'] = array('#type' => 'textarea', '#title' => t('Description'), '#default_value' => $edit['description'], '#cols' => 60, '#rows' => 5); + $form['title'] = array('#type' => 'textfield', '#title' => t('Title'), '#default_value' => $edit['title'], '#maxlength' => 64); + $form['description'] = array('#type' => 'textarea', '#title' => t('Description'), '#default_value' => $edit['description']); $form['submit'] = array('#type' => 'submit', '#value' =>t('Submit')); if ($edit['cid']) { @@ -679,8 +679,8 @@ function aggregator_form_feed($edit = array()) { } - $form['title'] = array('#type' => 'textfield', '#title' => t('Title'), '#default_value' => $edit['title'], '#size' => 60, '#maxlength' => 64, '#description' => t('The name of the feed; typically the name of the web site you syndicate content from.')); - $form['url'] = array('#type' => 'textfield', '#title' => t('URL'), '#default_value' => $edit['url'], '#size' => 60, '#maxlength' => 255, '#description' => t('The fully-qualified URL of the feed.')); + $form['title'] = array('#type' => 'textfield', '#title' => t('Title'), '#default_value' => $edit['title'], '#maxlength' => 64, '#description' => t('The name of the feed; typically the name of the web site you syndicate content from.')); + $form['url'] = array('#type' => 'textfield', '#title' => t('URL'), '#default_value' => $edit['url'], '#maxlength' => 255, '#description' => t('The fully-qualified URL of the feed.')); $form['refresh'] = array('#type' => 'select', '#title' => t('Update interval'), '#default_value' => $edit['refresh'], '#options' => $period, '#description' => t('The refresh interval indicating how often you want to update this feed. Requires crontab.')); // Handling of categories: -- cgit v1.2.3