I am using coder to port a module from 5 to 6. I have everyting done except this one error I can not figure ou

Line 132: hook no longer exists, use hook_form_alter() to swap your own validation handler (Drupal Docs)

$db_info = content_database_info($field_info);

I looked at both the docs and links but could find nothing that helped me out.

The autocomplete option show up on the cck menu whne you are creating the text box, but no box appears on the form when you go to create the content.

Here is the code
/**
* Callback to return the values for autocomplete.
*/
function textfield_autocomplete($fieldname, $startswith) {
/*
$items = func_get_args();
$items = array_combine($items, $items);
echo drupal_to_js($items);
die();
*/

$field = content_fields($fieldname);
$db_info = content_database_info($field);
$getdatafrom[$db_info['table']][$db_info['columns']['value']['column']] = TRUE;

$items = array();
foreach ($getdatafrom as $table => $columns) {
$cols = array_keys($columns);

// I do this self-join business because I want the latest version ID.
// So I join with itself, saying I want all the pairs of
// (a row, a row with a greater version id).
// Then I cut it down, saying I only want ones where the one with the
// greater version id is null.
// Taken together, it's like saying "Give me all the ones such that there
// is no row with a greater version id."
// Doing it this way means that I don't have to do a subselect, which can
// be slow.
$likes = array();
$likes_vals = array();
foreach ($cols as $col) {
$likes[] = "A.". $col ." LIKE '%s%%'";
$likes_vals[] = $startswith;
} // foreach likes

$query = "SELECT DISTINCT A.". implode(', A.', $cols) ."FROM {". $table ."} A LEFT JOIN {". $table ."} B ON (A.nid=B.nid AND B.vid > A.vid) WHERE B.vid IS NULL AND ". implode(" AND ", $likes);
$result = db_query($query, $likes_vals);

while ($row = db_fetch_array($result)) {
foreach ($row as $colname => $colval) {
$items[] = $colval;
} // foreach col value
} // while there's rows
} // foreach table

if ($items) {
$items = array_combine($items, $items);
}
echo drupal_to_js($items);
die();
} // function nonsense_autocomplete