1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <?php
- function tripal_featuremap_admin_featuremaps_listing() {
- $output = '';
-
- $breadcrumb = array();
- $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 = array();
-
-
- $details = array(
- 'module' => 'tripal_featuremap',
- 'content_type' => 'chado_featuremap',
-
-
- 'options' => array(
-
- '[featuremap.name]' => 'Unique Contraint: The name of the map'
- ),
-
- 'unique_option' => '[featuremap.name]'
- );
-
-
- chado_add_admin_form_set_title($form, $form_state, $details);
-
- $details = array(
- 'module' => 'tripal_featuremap',
- 'content_type' => 'chado_featuremap',
- 'options' => array(
- '/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);
- }
|