CCK hook_field
Last modified: March 30, 2009 - 04:26
Hook_field() defines how the field will actually store and display its contents.
The 'validate' operation provides an opportunity for the field to validate the field data when the node is validated. The $field parameter contains the field settings, which can be used to help in the validation process.
The content module invokes each of these operations twice, first to do whatever is defined here, and then again by the content module itself, which performs its own operations on the field. [revise -- this is D5.x documentation]
<?php
function hook_field($op, &$node, $field, &$items, $teaser, $page)
?>Possible values of $op:
- delete
- delete revision
- insert
- load
- prepare translation
- presave
- sanitize
- update
- validate
