diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-11-12 11:26:16 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-11-12 11:26:16 +0000 |
commit | aeed4cd8e4814bb0ed8ad06d581a95b82e2d718b (patch) | |
tree | 4a022207fea4b4d7a4a48a6ac20099c3b38e0629 /modules/aggregator | |
parent | 64a617c208c02b6360d16d0960eebc67839d4dc8 (diff) | |
download | brdo-aeed4cd8e4814bb0ed8ad06d581a95b82e2d718b.tar.gz brdo-aeed4cd8e4814bb0ed8ad06d581a95b82e2d718b.tar.bz2 |
- Patch #35644 by webchick: forms API simplificiations.
Diffstat (limited to 'modules/aggregator')
-rw-r--r-- | modules/aggregator/aggregator.module | 8 |
1 files changed, 4 insertions, 4 deletions
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: |