123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <?php
- function tripal_organism_admin_organism_view() {
- $output = '';
-
- $breadcrumb = array();
- $breadcrumb[] = l('Home', '<front>');
- $breadcrumb[] = l('Administration', 'admin');
- $breadcrumb[] = l('Tripal', 'admin/tripal');
- $breadcrumb[] = l('Chado', 'admin/tripal/chado');
- $breadcrumb[] = l('Organisms', 'admin/tripal/chado/tripal_organism');
- drupal_set_breadcrumb($breadcrumb);
-
- $view = views_embed_view('tripal_organism_admin_organisms','default');
- if (isset($view)) {
- $output .= $view;
- }
- else {
- $output .= '<p>The Organism module uses primarily views to provide an '
- . 'administrative interface. Currently one or more views needed for this '
- . 'administrative interface are disabled. <strong>Click each of the following links to '
- . 'enable the pertinent views</strong>:</p>';
- $output .= '<ul>';
- $output .= '<li>'.l('Organisms View', 'admin/tripal/chado/tripal_organism/views/organisms/enable').'</li>';
- $output .= '</ul>';
- }
- return $output;
- }
- function tripal_organism_admin() {
- $form = array();
-
-
- $details = array(
- 'module' => 'tripal_organism',
- 'content_type' => 'chado_organism',
-
-
- 'options' => array(
- '[organism.name]' => 'Organism Name Only',
-
- '[organism.genus] [organism.species]' => 'Unique Contraint: The scientific name'
- ),
-
- 'unique_option' => '[organism.genus] [organism.species]'
- );
-
-
- chado_add_admin_form_set_title($form, $form_state, $details);
- return system_settings_form($form);
- }
- function tripal_organism_admin_validate($form, &$form_state) {
- }
|