12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <?php
- function tripal_featuremap_admin_featuremaps_listing() {
- $output = '';
-
- $breadcrumb = [];
- $breadcrumb[] = l('Home', '<front>');
- $breadcrumb[] = l('Administration', 'admin');
- $breadcrumb[] = l('Tripal', 'admin/tripal');
- $breadcrumb[] = l('Chado', 'admin/tripal/legacy');
- $breadcrumb[] = l('Maps', 'admin/tripal/legacy/tripal_featuremap');
- drupal_set_breadcrumb($breadcrumb);
-
- $view = views_embed_view('tripal_featuremap_admin_featuremaps', 'default');
- if (isset($view)) {
- $output .= $view;
- }
- else {
- $output .= '<p>The Tripal Feature Map 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('Feature Map Admin', 'admin/tripal/legacy/tripal_featuremap/views/featuremaps/enable') . '</li>';
- $output .= '</ul>';
- }
- return $output;
- }
- function tripal_featuremap_admin() {
- $form = [];
-
-
- $details = [
- 'module' => 'tripal_featuremap',
-
- 'content_type' => 'chado_featuremap',
-
-
-
- 'options' => [
-
- '[featuremap.name]' => 'Unique Contraint: The name of the map',
- ],
-
- 'unique_option' => '[featuremap.name]',
- ];
-
-
- chado_add_admin_form_set_title($form, $form_state, $details);
-
- $details = [
- 'module' => 'tripal_featuremap',
- 'content_type' => 'chado_featuremap',
- 'options' => [
- '/featuremap/[featuremap.featuremap_id]' => 'Feature Map ID',
- '/featuremap/[featuremap.name]' => 'Unique Contraint: The name of the Feature Map',
- ],
- ];
-
-
- chado_add_admin_form_set_url($form, $form_state, $details);
- return system_settings_form($form);
- }
|