summaryrefslogtreecommitdiff
path: root/modules/blog/blog.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-07-08 15:09:53 +0000
committerDries Buytaert <dries@buytaert.net>2004-07-08 15:09:53 +0000
commit4dbc900d3b8eaa35fc3c9748d5483eee884425d2 (patch)
tree6d73dd67b8f4917b965f108f230ecd44f4fc3d1b /modules/blog/blog.module
parentc989fc7cf7c3379ae85f187f085cc14a782f670c (diff)
downloadbrdo-4dbc900d3b8eaa35fc3c9748d5483eee884425d2.tar.gz
brdo-4dbc900d3b8eaa35fc3c9748d5483eee884425d2.tar.bz2
- Renamed the blog module's block for sake of clarity.
- Made the blog module's submission form mark required form fields.
Diffstat (limited to 'modules/blog/blog.module')
-rw-r--r--modules/blog/blog.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module
index 23a73071c..d49a55de6 100644
--- a/modules/blog/blog.module
+++ b/modules/blog/blog.module
@@ -212,7 +212,7 @@ function blog_form(&$node) {
$output .= implode('', taxonomy_node_form('blog', $node));
}
- $output .= form_textarea(t('Body'), 'body', $node->body, 60, 15, filter_tips_short());
+ $output .= form_textarea(t('Body'), 'body', $node->body, 60, 15, filter_tips_short(), NULL, TRUE);
return $output;
}
@@ -291,14 +291,14 @@ function blog_menu() {
function blog_block($op = 'list', $delta = 0) {
global $user;
if ($op == 'list') {
- $block[0]['info'] = t('Blogs');
+ $block[0]['info'] = t('Recent blog posts');
return $block;
}
else {
if (user_access('access content')) {
$block['content'] = node_title_list(db_query_range("SELECT n.title, n.nid FROM {node} n WHERE n.type = 'blog' AND n.status = 1 ORDER BY n.created DESC", 0, 10));
$block['content'] .= '<div class="more-link">'. l(t('more'), 'blog', array('title' => t('Read the latest blog entries.'))) .'</div>';
- $block['subject'] = t('Blogs');
+ $block['subject'] = t('Recent blog posts');
}
return $block;
}