public function TaxonomyImporter::form

3.x TaxonomyImporter.inc public TaxonomyImporter::form($form, &$form_state)

Overrides TripalImporter::form

See also

TripalImporter::form()

File

tripal_chado/includes/TripalImporter/TaxonomyImporter.inc, line 121

Class

TaxonomyImporter

Code

public function form($form, &$form_state) {

  $form['instructions'] = array(
    '#type' => 'fieldset',
    '#title' => 'instructions',
    '#description' => t('This form is used to import species from the NCBI
        Taxonomy database into this site. Alternatively, it can import details
        about organisms from the NCBI Taxonomy database for organisms that
        already exist on this site.  This loader will also construct
        the taxonomic tree for the species loaded.'),
  );
  $form['taxonomy_ids'] = array(
    '#type' => 'textarea',
    '#title' => 'Taxonomy ID',
    '#description' => t('Please provide a list of NCBI taxonomy IDs separated
        by spaces, tabs or new lines.
        The information about these organisms will be downloaded and new organism
        records will be added to this site.')
  );

  $form['import_existing'] = array(
    '#type' => 'checkbox',
    '#title' => 'Import details for existing species.',
    '#description' => t('The NCBI Taxonomic Importer examines the organisms
        currently present in the database and queries NCBI for the
        taxonomic details.  If the importer is able to match the
        genus and species with NCBI the species details will be imported,
        and a page containing the taxonomic tree will be created.'),
    '#default value' => 1,
  );
  return $form;
}