summaryrefslogtreecommitdiff
path: root/modules/node.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-06-27 18:33:33 +0000
committerDries Buytaert <dries@buytaert.net>2005-06-27 18:33:33 +0000
commit58aee8cdad4baef160f7e0cf6dc5e245a1acc080 (patch)
tree329e6127e5033a4dcb9ebc60031a009c6b53cc90 /modules/node.module
parentd190e16c9ef0214293ea32306bfb49d3d1233654 (diff)
downloadbrdo-58aee8cdad4baef160f7e0cf6dc5e245a1acc080.tar.gz
brdo-58aee8cdad4baef160f7e0cf6dc5e245a1acc080.tar.bz2
- Patch #25603 by Stefan: made the sizes of forms consistent.
TODO: document the defaults in the PHPdoc comments.
Diffstat (limited to 'modules/node.module')
-rw-r--r--modules/node.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/node.module b/modules/node.module
index 54a6285e7..e454de575 100644
--- a/modules/node.module
+++ b/modules/node.module
@@ -938,7 +938,7 @@ function node_types_configure($type = NULL) {
$node = new stdClass();
$node->type = $type;
- $group = form_textarea(t('Explanation or submission guidelines'), $type .'_help', variable_get($type .'_help', ''), 70, 5, t('This text will be displayed at the top of the %type submission form. It is useful for helping or instructing your users.', array('%type' => node_invoke($type, 'node_name'))));
+ $group = form_textarea(t('Explanation or submission guidelines'), $type .'_help', variable_get($type .'_help', ''), 60, 5, t('This text will be displayed at the top of the %type submission form. It is useful for helping or instructing your users.', array('%type' => node_invoke($type, 'node_name'))));
$group .= form_select(t('Minimum number of words'), 'minimum_'. $type .'_size', variable_get('minimum_'. $type .'_size', 0), drupal_map_assoc(array(0, 10, 25, 50, 75, 100, 125, 150, 175, 200)), t('The minimum number of words a %type must be to be considered valid. This can be useful to rule out submissions that do not meet the site\'s standards, such as short test posts.', array('%type' => node_invoke($type, 'node_name'))));
$output = form_group(t('Submission form'), $group);
$output .= form_group(t('Workflow'), implode('', node_invoke_nodeapi($node, 'settings')));
@@ -1288,8 +1288,8 @@ function node_form($edit) {
if (user_access('administer nodes')) {
$output .= '<div class="admin">';
- $author = form_autocomplete(t('Authored by'), 'name', $edit->name, 20, 60, 'user/autocomplete');
- $author .= form_textfield(t('Authored on'), 'date', $edit->date, 20, 25, NULL, NULL, TRUE);
+ $author = form_autocomplete(t('Authored by'), 'name', $edit->name, 30, 60, 'user/autocomplete');
+ $author .= form_textfield(t('Authored on'), 'date', $edit->date, 30, 25, NULL, NULL, TRUE);
$output .= '<div class="authored">';
$output .= form_group_collapsible(t('Authoring information'), $author, TRUE);