123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- <?php
- function tripal_contact_admin_contact_view() {
- $output = '';
-
- $breadcrumb = [];
- $breadcrumb[] = l('Home', '<front>');
- $breadcrumb[] = l('Administration', 'admin');
- $breadcrumb[] = l('Tripal', 'admin/tripal');
- $breadcrumb[] = l('Chado', 'admin/tripal/legacy');
- $breadcrumb[] = l('Contacts', 'admin/tripal/legacy/tripal_contact');
- drupal_set_breadcrumb($breadcrumb);
-
- $view = views_embed_view('tripal_contact_admin_contacts', 'default');
- if (isset($view)) {
- $output .= $view;
- }
- else {
- $output .= '<p>The Contact 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('Contacts View', 'admin/tripal/legacy/tripal_contact/views/contacts/enable') . '</li>';
- $output .= '</ul>';
- }
- return $output;
- }
- function tripal_contact_admin() {
- $form = [];
-
-
- $details = [
- 'module' => 'tripal_contact',
-
- 'content_type' => 'chado_contact',
-
-
-
- 'options' => [
- '[contact.name]' => 'Contact Name Only',
-
- '[contact.name]' => 'Unique Contraint: The name of the contact',
- ],
-
- 'unique_option' => '[contact.name]',
- ];
-
-
- chado_add_admin_form_set_title($form, $form_state, $details);
-
- $details = [
- 'module' => 'tripal_contact',
- 'content_type' => 'chado_contact',
- 'options' => [
- '/contact/[contact.contact_id]' => 'Contact ID',
- '/contact/[contact.name]' => 'Unique Contraint: The name of the contact',
- ],
- ];
-
-
- chado_add_admin_form_set_url($form, $form_state, $details);
- return system_settings_form($form);
- }
- function get_tripal_contact_admin_form_reindex_set(&$form) {
- }
- function tripal_contact_admin_validate($form, &$form_state) {
- }
|