function tripal_custom_tables_delete_form_submit

2.x tripal_core.custom_tables.inc tripal_custom_tables_delete_form_submit($form, &$form_state)
3.x tripal_chado.custom_tables.inc tripal_custom_tables_delete_form_submit($form, &$form_state)

form submit hook for the tripal_custom_tables_delete_form form.

_state

Parameters

$form:

File

tripal_core/includes/tripal_core.custom_tables.inc, line 426
Contains functions for creating, editing and deleting custom tables on the Tripal website.

Code

function tripal_custom_tables_delete_form_submit($form, &$form_state) {
  $action = $form_state['clicked_button']['#value'];
  $table_id = $form_state['values']['table_id'];

  if (strcmp($action, 'Delete') == 0) {
    chado_delete_custom_table($table_id);
  }
  else {
    drupal_set_message(t("No action performed."));
  }
  drupal_goto("admin/tripal/schema/custom_tables");
}