Skip to content
Snippets Groups Projects
Commit fbfde433 authored by Gerhard Killesreiter's avatar Gerhard Killesreiter
Browse files

#56789, remove left over call to node_title_validate, patch by chx

parent 4a687488
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -103,8 +103,6 @@ function poll_submit(&$node) {
* Implementation of hook_validate().
*/
function poll_validate($node) {
node_validate_title($node, t('You have to specify a question.'));
if (isset($node->title)) {
// Check for at least two options and validate amount of votes:
$realchoices = 0;
......
......@@ -103,8 +103,6 @@ function poll_submit(&$node) {
* Implementation of hook_validate().
*/
function poll_validate($node) {
node_validate_title($node, t('You have to specify a question.'));
if (isset($node->title)) {
// Check for at least two options and validate amount of votes:
$realchoices = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment