function tripal_core_ahah_init_form

1.x tripal_core_ahah.api.inc tripal_core_ahah_init_form()

This function should be called to initialize the page for use of AHAH elements in a form.

See http://tripal.info/documentation/ahah_api for example usage

@returns nothing

Related topics

9 calls to tripal_core_ahah_init_form()
chado_analysis_form in tripal_analysis/includes/tripal_analysis.form.inc
When editing or creating a new node of type 'chado_analysis' we need a form. This function creates the form that will be used for this.
chado_contact_form in tripal_contact/includes/tripal_contact.form.inc
Implementation of tripal_contact_form().
chado_featuremap_form in tripal_featuremap/includes/tripal_featuremap.form.inc
When editing or creating a new node of type 'chado_featuremap' we need a form. This function creates the form that will be used for this.
chado_pub_form in tripal_pub/includes/pub_form.inc
tripal_cv_cvterm_form in tripal_cv/includes/tripal_cv_admin.inc
Purpose: Provides the form that allows adding of terms to an existing controlled vocabulary

... See full list

File

tripal_core/api/tripal_core_ahah.api.inc, line 31
The Tripal AJAX/AHAH API

Code

function tripal_core_ahah_init_form() {
  // If form elements have autocomplete elements returned in
  // an ahah call they won't work because the following JS file
  // doesn't get included. If we include it first before any 
  // ahah calls it will be there when we need it.
  drupal_add_js('misc/autocomplete.js');
}