in flexinode this function is called .. i believe it is same issue as reported elsewhere.
line 601 of flexinode.module:
600 function flexinode_validate($node) {
601 node_validate_title($node);
602
603 if (isset($node->ctype_id)) {
604 $ctype = flexinode_load_content_type($node->ctype_id);
605 foreach ($ctype->fields as $field) {
606 $fieldname = 'flexinode_'. $field->field_id;
607 $validation = flexinode_invoke('validate', $field, $node);
608 if ($field->required && !$node->$fieldname) {
609 form_set_error($fieldname, t('You must fill in the field "'. $field->label .'".'));
610 }
611 }
612 }
613 }
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | node_validate_title.patch | 647 bytes | RayZ |
Comments
Comment #1
hadishon commentedI'm getting this error using current CVS Drupal and current CVS Flexinode:
Fatal error: Call to undefined function: node_validate_title() in /home/httpd/vhosts/activefarming.com/httpdocs/modules/flexinode/flexinode.module on line 604
Comment #2
hadishon commentedAs per http://drupal.org/node/22218#node_validate_title and other issues for other items:
node_validate_title() was removed
The page above specifies to:
Simply specify the '#required' => TRUE attribute on the form item instead, and form API will validate for you.
How do I do this?
Comment #3
hadishon commentedI looked at the patch for project.module and they just deleted the line...
I tried deleting:
node_validate_title($node);and now flexinode appears to be working fine. I don't know if this would cause any other problems though?
Comment #4
RayZ commentedThis looks fine to me. Here is the patch. It appears '#required' => TRUE was already in there.
Comment #5
jonbob commentedCommitted.
Comment #6
(not verified) commented