123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <?php
- function tripal_library_admin_libraries_listing() {
- $output = '';
-
- $breadcrumb = array();
- $breadcrumb[] = l('Home', '<front>');
- $breadcrumb[] = l('Administration', 'admin');
- $breadcrumb[] = l('Tripal', 'admin/tripal');
- $breadcrumb[] = l('Chado', 'admin/tripal/chado');
- $breadcrumb[] = l('Libraries', 'admin/tripal/chado/tripal_library');
- drupal_set_breadcrumb($breadcrumb);
-
- $view = views_embed_view('tripal_library_admin_libraries','default');
- if (isset($view)) {
- $output .= $view;
- }
- else {
- $output .= '<p>The Tripal Library 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('Library Admin', 'admin/tripal/chado/tripal_library/views/libraries/enable').'</li>';
- $output .= '</ul>';
- }
- return $output;
- }
- function tripal_library_admin() {
- $form = array();
-
-
- $details = array(
- 'module' => 'tripal_library',
- 'content_type' => 'chado_library',
-
-
- 'options' => array(
- '[library.name]' => 'Library Name Only',
-
- '[library.name], [library.uniquename] ([library.type_id>cvterm.name]) [library.organism_id>organism.genus] [library.organism_id>organism.species]' => 'Unique Contraint: Includes the name, type and organism scientific name'
- ),
-
- 'unique_option' => '[library.name], [library.uniquename] ([library.type_id>cvterm.name]) [library.organism_id>organism.genus] [library.organism_id>organism.species]'
- );
-
-
- chado_add_admin_form_set_title($form, $form_state, $details);
-
- $details = array(
- 'module' => 'tripal_library',
- 'content_type' => 'chado_library',
- 'options' => array(
- '/library/[library.library_id]' => 'Library ID',
- '/library/[library.organism_id>organism.genus]/[library.organism_id>organism.species]/[library.type_id>cvterm.name]/[library.uniquename]' => 'Unique Contraint: Includes the name, uniquename, type and scientific name'
- ),
- );
-
-
- chado_add_admin_form_set_url($form, $form_state, $details);
- return system_settings_form($form);
- }
|