diff --git a/modules/blog.module b/modules/blog.module index a1366f7d7f68d8caf484e6e68dc2bd729933d522..cd93d00123554b1fe03b23abd0907049a573dd52 100644 --- a/modules/blog.module +++ b/modules/blog.module @@ -195,13 +195,6 @@ function blog_page_last() { return $output; } -/** - * Implementation of hook_validate(). - */ -function blog_validate($node) { - node_validate_title($node); -} - /** * Implementation of hook_form(). */ diff --git a/modules/blog/blog.module b/modules/blog/blog.module index a1366f7d7f68d8caf484e6e68dc2bd729933d522..cd93d00123554b1fe03b23abd0907049a573dd52 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -195,13 +195,6 @@ function blog_page_last() { return $output; } -/** - * Implementation of hook_validate(). - */ -function blog_validate($node) { - node_validate_title($node); -} - /** * Implementation of hook_form(). */ diff --git a/modules/book.module b/modules/book.module index 70f0ee90c7cfb0471bc809b946843603951040c6..0f8fc78df18730393b6e908bfe43283d3f5342d6 100644 --- a/modules/book.module +++ b/modules/book.module @@ -236,13 +236,6 @@ function book_submit(&$node) { } } -/** - * Implementation of hook_validate(). - */ -function book_validate($node) { - node_validate_title($node); -} - /** * Implementation of hook_form(). */ diff --git a/modules/book/book.module b/modules/book/book.module index 70f0ee90c7cfb0471bc809b946843603951040c6..0f8fc78df18730393b6e908bfe43283d3f5342d6 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -236,13 +236,6 @@ function book_submit(&$node) { } } -/** - * Implementation of hook_validate(). - */ -function book_validate($node) { - node_validate_title($node); -} - /** * Implementation of hook_form(). */ diff --git a/modules/forum.module b/modules/forum.module index 4ec2429e9b44e6547f6772fb8c76030250e2edb6..47eb04d3c5ec20cc85bb5740abd3a0ab3483e95d 100644 --- a/modules/forum.module +++ b/modules/forum.module @@ -326,8 +326,6 @@ function forum_submit(&$node) { * vocabulary is selected, not a "container" term. */ function forum_validate($node) { - node_validate_title($node,t('You have to specify a subject.')); - if ($node->taxonomy) { // Extract the node's proper topic ID. $vocabulary = variable_get('forum_nav_vocabulary', ''); diff --git a/modules/forum/forum.module b/modules/forum/forum.module index 4ec2429e9b44e6547f6772fb8c76030250e2edb6..47eb04d3c5ec20cc85bb5740abd3a0ab3483e95d 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -326,8 +326,6 @@ function forum_submit(&$node) { * vocabulary is selected, not a "container" term. */ function forum_validate($node) { - node_validate_title($node,t('You have to specify a subject.')); - if ($node->taxonomy) { // Extract the node's proper topic ID. $vocabulary = variable_get('forum_nav_vocabulary', ''); diff --git a/modules/node.module b/modules/node.module index ebe013b93b9a34291570c578fa67824ce4a34d73..bdce5ebea327aeac23282c4e9a3f980d045e6786 100644 --- a/modules/node.module +++ b/modules/node.module @@ -1647,18 +1647,6 @@ function node_validate($node) { node_invoke_nodeapi($node, 'validate'); } -/** - * Validate the title of a node - */ -function node_validate_title($node, $message = NULL) { - // Validate the title field. - if (isset($node->title)) { - if (trim($node->title) == '') { - form_set_error('title', isset($message) ? $message : t('You have to specify a title.')); - } - } -} - function node_form_validate($form_id, $edit) { node_validate($edit); } diff --git a/modules/node/node.module b/modules/node/node.module index ebe013b93b9a34291570c578fa67824ce4a34d73..bdce5ebea327aeac23282c4e9a3f980d045e6786 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1647,18 +1647,6 @@ function node_validate($node) { node_invoke_nodeapi($node, 'validate'); } -/** - * Validate the title of a node - */ -function node_validate_title($node, $message = NULL) { - // Validate the title field. - if (isset($node->title)) { - if (trim($node->title) == '') { - form_set_error('title', isset($message) ? $message : t('You have to specify a title.')); - } - } -} - function node_form_validate($form_id, $edit) { node_validate($edit); } diff --git a/modules/page.module b/modules/page.module index b488361946a48f36f0580708cdd9dd39c55ab71e..320ce8accbd7c2c08558e8f46c69ed5e87d52f6a 100644 --- a/modules/page.module +++ b/modules/page.module @@ -79,13 +79,6 @@ function page_menu($may_cache) { return $items; } -/** - * Implementation of hook_validate(). - */ -function page_validate($node) { - node_validate_title($node); -} - /** * Implementation of hook_form(). */ diff --git a/modules/page/page.module b/modules/page/page.module index b488361946a48f36f0580708cdd9dd39c55ab71e..320ce8accbd7c2c08558e8f46c69ed5e87d52f6a 100644 --- a/modules/page/page.module +++ b/modules/page/page.module @@ -79,13 +79,6 @@ function page_menu($may_cache) { return $items; } -/** - * Implementation of hook_validate(). - */ -function page_validate($node) { - node_validate_title($node); -} - /** * Implementation of hook_form(). */ diff --git a/modules/story.module b/modules/story.module index bf889dbcec54fcfd41a9be45f965c2372eb8ae10..18123c15b58355f1dc6aa8c01f45a46d7430a105 100644 --- a/modules/story.module +++ b/modules/story.module @@ -74,13 +74,6 @@ function story_menu($may_cache) { return $items; } -/** - * Implementation of hook_validate(). - */ -function story_validate($node) { - node_validate_title($node); -} - /** * Implementation of hook_form(). */ diff --git a/modules/story/story.module b/modules/story/story.module index bf889dbcec54fcfd41a9be45f965c2372eb8ae10..18123c15b58355f1dc6aa8c01f45a46d7430a105 100644 --- a/modules/story/story.module +++ b/modules/story/story.module @@ -74,13 +74,6 @@ function story_menu($may_cache) { return $items; } -/** - * Implementation of hook_validate(). - */ -function story_validate($node) { - node_validate_title($node); -} - /** * Implementation of hook_form(). */