blast_ui.module 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. require_once 'includes/blast_ui.blastn.inc';
  3. require_once 'includes/blast_ui.blastp.inc';
  4. require_once 'includes/blast_ui.node.inc';
  5. function blast_ui_menu() {
  6. $items['blast'] = array(
  7. 'title' => 'BLAST',
  8. 'page callback' => 'drupal_get_form',
  9. // Add in a page callback/aguements for a drupal form letting you choose nucl. or protein and then redirecting you
  10. 'page arguments' => array('blast_nucleotide_form'),
  11. 'access arguments' => array('access content'),
  12. 'type' => MENU_NORMAL_ITEM,
  13. 'expanded' => TRUE
  14. );
  15. $items['blast/blastn'] = array(
  16. 'title' => 'Nucleotide BLAST',
  17. 'page callback' => 'drupal_get_form',
  18. 'page arguments' => array('blast_nucleotide_form'), //Need to change these to use the blast_ui prefix instead of just blast
  19. // Added the following
  20. 'access arguments' => array('access content'),
  21. 'type' => MENU_NORMAL_ITEM
  22. );
  23. $items['blast/blastp'] = array(
  24. 'title' => 'Protein BLAST',
  25. 'page callback' => 'drupal_get_form',
  26. 'page arguments' => array('blast_protein_form'), //Need to change these to use the blast_ui prefix instead of just blast
  27. // Added the following
  28. 'access arguments' => array('access content'),
  29. 'type' => MENU_NORMAL_ITEM
  30. );
  31. return $items;
  32. }