summaryrefslogtreecommitdiff
path: root/modules/blog/blog.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-09-23 08:47:13 +0000
committerDries Buytaert <dries@buytaert.net>2005-09-23 08:47:13 +0000
commit61740bd8ee133c3d0ea2543bccc4d00a62c9e3a0 (patch)
tree814cc9a6da1ec51a6e3eca921dc001ae6b5dee6a /modules/blog/blog.module
parente3a4085a07647878142d1c51a6977a5b98f707ea (diff)
downloadbrdo-61740bd8ee133c3d0ea2543bccc4d00a62c9e3a0.tar.gz
brdo-61740bd8ee133c3d0ea2543bccc4d00a62c9e3a0.tar.bz2
- Patch #10056: allow the node title forms to be customized.
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