You are here

function autocomplete_widgets_form_alter in Autocomplete Widgets for Text and Number Fields 6

Implementation of hook_form_alter().

Because we need to alter the field settings form, this module needs to be loaded after CCK Text/Number field modules. See autocomplete_widgets_install().

File

./autocomplete_widgets.module, line 49
Provides autocomplete widgets for CCK Text and Number fields.

Code

function autocomplete_widgets_form_alter(&$form, $form_state, $form_id) {

  // Provide additional help for the field settings form.
  if ($form_id == 'content_field_edit_form' && isset($form['widget'])) {
    module_load_include('inc', 'autocomplete_widgets', 'autocomplete_widgets.admin');
    _autocomplete_widgets_content_field_edit_form_alter($form, $form_state);
  }
}