function tripal_analysis_delete_form

2.x tripal_analysis.delete.inc tripal_analysis_delete_form()
3.x tripal_analysis.delete.inc tripal_analysis_delete_form()

A form for indicating the analyses to delete *

Related topics

1 string reference to 'tripal_analysis_delete_form'
tripal_analysis_menu in tripal_analysis/tripal_analysis.module
Implementation of hook_menu(). Entry points and paths of the module

File

tripal_analysis/includes/tripal_analysis.delete.inc, line 13
Administration Interface for deleting multiple analyses

Code

function tripal_analysis_delete_form() {
  // get the list of analyses
  $sql = "SELECT * FROM {analysis} ORDER BY name";
  $org_rset = chado_query($sql);
  $analyses = array();
  while ($analysis = $org_rset->fetchObject()) {
    $analyses[$analysis->analysis_id] = "$analysis->name";
  }

  $form['desc'] = array(
    '#markup' => t("Use the following form to delete analyses which may or may
        not be synced. Please be cautious. Deleting an analysis will cause all
        data associated with the analysis to also be deleted."),
  );

  $form['analyses'] = array(
    '#title' => t('analysis'),
    '#type' => 'checkboxes',
    '#options' => $analyses,
    '#prefix' => '<div style="height: 400px; overflow: scroll">',
    '#suffix' => '</div><br>',
  );

  $form['button'] = array(
    '#type' => 'submit',
    '#value' => t('Delete analyses'),
  );
  return $form;
}