diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-09-27 20:15:54 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-09-27 20:15:54 +0000 |
commit | ff17aa0b94b935becd0c2ab4e14355920cb3d298 (patch) | |
tree | 842186885a66b023dbd18bf2d93658f04c4ff982 /modules/blog/blog.module | |
parent | fc3676d50b9c50f471f8591bcaf07b864e86bf4b (diff) | |
download | brdo-ff17aa0b94b935becd0c2ab4e14355920cb3d298.tar.gz brdo-ff17aa0b94b935becd0c2ab4e14355920cb3d298.tar.bz2 |
- Patch #11045 by Stefan: improved consistency of node modules:
+ made the helptext under the 'Explanation or submission guidelines', more the same (blog & story);
+ made the form_set_error() texts consistent when the body of a blog/story does not match or exceeds the specified minimal numer of words.
+ used the $options for form_select() and form_radios() inline like we do in the rest of drupal;
+ made the textarea sizes for the submission pages the same for all node types and also for the 'Explanation or submission guidelines';
Diffstat (limited to 'modules/blog/blog.module')
-rw-r--r-- | modules/blog/blog.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module index ab02de1ba..103df2a53 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -10,7 +10,7 @@ * Implementation of hook_settings(). */ function blog_settings() { - $output = form_textarea(t('Explanation or submission guidelines'), 'blog_help', variable_get('blog_help', ''), 70, 4, t("This text is displayed at the top of the blog submission form. It's useful for helping or instructing your users.")); + $output = form_textarea(t('Explanation or submission guidelines'), 'blog_help', variable_get('blog_help', ''), 70, 5, t('This text will be displayed at the top of the blog submission form. It is useful for helping or instructing your users.')); $output .= form_select(t('Minimum number of words in a blog entry'), 'minimum_blog_size', variable_get('minimum_blog_size', 0), drupal_map_assoc(array(0, 10, 25, 50, 75, 100, 125, 150, 175, 200)), t("The minimum number of words a personal blog entry should contain. This is useful to rule out submissions that do not meet the site's standards, such as short test posts.")); return $output; } @@ -179,7 +179,7 @@ function blog_page_last() { */ function blog_validate(&$node) { if (isset($node->body) && count(explode(' ', $node->body)) < variable_get('minimum_blog_size', 0)) { - form_set_error('body', t('The body of your blog is too short.')); + form_set_error('body', t('The body of your blog is too short. You need at least %words words to submit your blog.', array('%words' => variable_get('minimum_story_size', 0)))); } } @@ -210,7 +210,7 @@ function blog_form(&$node) { $output .= implode('', taxonomy_node_form('blog', $node)); } - $output .= form_textarea(t('Body'), 'body', $node->body, 60, 15, '', NULL, TRUE); + $output .= form_textarea(t('Body'), 'body', $node->body, 60, 20, '', NULL, TRUE); return $output; } |