I am having a bit of trouble piecing these two parts of theming and autocomplete together.
I am implementing the theming of the actuall CCK for (part that user fills out - not the node output) by following the conversation in http://drupal.org/node/61481 which seems to work very well.
i am trying to integrate this feature with the built in autocomplete function in Drupal (following http://drupal.org/node/42552 )
I am trying to have auto complete work on a textfield 'field_school' and call the vocabulary from taxonomy 10. I am a bit confused as to how to mesh these two things together (i am trying this as a proof of concept really, i don't know php much at all)
so my question is where does the 'autocomplete' call go in the form field?
this is the code given in the cck autocomplete section,
<?php
$form['taxonomy']['tags'][$vocabulary->vid] = array('#type' => 'textfield', '#default_value' => $typed_string, '#maxlength' => 100, '#autocomplete_path' => 'taxonomy/autocomplete/'. $vocabulary->vid, '#required' => $vocabulary->required, '#title' => $vocabulary->name, '#description' => t('A comma-separated list of terms describing this content (Example: funny, bungie jumping, "Company, Inc.").'));
?>
where do i fit that into my field call in the forms theme file?
<?php
print_r(form_render($form['field_school']));
?>