You are here

function content_validate in Content Construction Kit (CCK) 5

Same name and namespace in other branches
  1. 6.3 content.module \content_validate()
  2. 6 content.module \content_validate()
  3. 6.2 content.module \content_validate()

Validate form callback to handle node type fields.

Both widgets and fields have a chance to raise error flags when a node is being validated.

1 call to content_validate()
content_nodeapi in ./content.module
Implementation of hook_nodeapi().

File

./content.module, line 226
Allows administrators to associate custom fields to content types.

Code

function content_validate(&$node) {
  _content_widget_invoke('validate', $node);
  _content_widget_invoke('process form values', $node);
  _content_field_invoke('validate', $node);
  _content_field_invoke_default('validate', $node);
}