summaryrefslogtreecommitdiff
path: root/modules/blog/blog.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/blog/blog.module')
-rw-r--r--modules/blog/blog.module9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module
index a773a566e..954dc9906 100644
--- a/modules/blog/blog.module
+++ b/modules/blog/blog.module
@@ -183,12 +183,21 @@ function blog_page_last() {
}
/**
+ * Implementation of hook_validate().
+ */
+function blog_validate(&$node) {
+ node_validate_title($node);
+}
+
+/**
* Implementation of hook_form().
*/
function blog_form(&$node) {
global $nid;
$iid = $_GET['iid'];
+ $output = form_textfield(t('Title'), 'title', $node->title, 60, 128, NULL, NULL, TRUE);
+
if (empty($node->body)) {
/*
** If the user clicked a "blog it" link, we load the data from the