You are here

function dba_table_overview_submit in Database Administration 7

Direct to the correct action.

File

./dba.admin.inc, line 108

Code

function dba_table_overview_submit($form, &$form_state) {
  $_SESSION['dba_tables'] = $form_state['input']['tables'];
  $_SESSION['dba_action'] = 'export';
  switch ($form_state['input']['op']) {
    case t('View'):
      drupal_goto('admin/structure/dba/view');
      break;
    case t('Export'):
      drupal_goto('admin/structure/dba/export');
      break;
    case t('Empty'):
      drupal_goto('admin/structure/dba/empty');
      break;
    case t('Describe'):
      drupal_goto('admin/structure/dba/describe');
      break;
    default:
      unset($_SESSION['dba_tables']);
      unset($_SESSION['dba_action']);
      drupal_set_message(t('%op not available, incomplete implementation for %driver database driver.', array(
        '%driver' => db_driver(),
        '%op' => $form_state['input']['op'],
      )), 'error');
      break;
  }
}