Tripal v1.0 (6.x-1.0)
tripal_db.module File Reference

Go to the source code of this file.

Functions

 tripal_db_init ()
 tripal_db_menu ()
 tripal_db_perm ()
 tripal_db_views_api ()
 tripal_db_form_alter (&$form, &$form_state, $form_id)
 tripal_db_theme ()

Function Documentation

tripal_db_form_alter ( &$  form,
&$  form_state,
form_id 
)

Definition at line 91 of file tripal_db.module.

                                                              {
  if ($form_id == "tripal_db_form") {    
    // updating the form through the ahah callback sets the action of
    // the form to the ahah callback URL. We need to set it back
    // to the normal form URL 
    if ($form_state['values']['form_action'] == 'Update') {
      $form['#action'] = url("admin/tripal/tripal_db/edit_db");
    }
    if ($form_state['values']['form_action'] == 'Add') {
      $form['#action'] = url("admin/tripal/tripal_db/add_db");
    }
  } 
}
 All Classes Files Functions Variables