12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?php
- /**
- * @file
- * This file contains the functions used for administration of the module
- *
- */
- function tripal_example_admin_examples_listing() {
- $output = '';
- // set the breadcrumb
- $breadcrumb = array();
- $breadcrumb[] = l('Home', '<front>');
- $breadcrumb[] = l('Administration', 'admin');
- $breadcrumb[] = l('Tripal', 'admin/tripal');
- $breadcrumb[] = l('Chado', 'admin/tripal/chado');
- $breadcrumb[] = l('Examples', 'admin/tripal/chado/tripal_example');
- drupal_set_breadcrumb($breadcrumb);
- /*
- // Add the view
- $view = views_embed_view('tripal_example_admin_examples','default');
- if (isset($view)) {
- $output .= $view;
- }
- else {
- $output .= '<p>The Tripal Example 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('Example Admin', 'admin/tripal/chado/tripal_example/views/examples/enable').'</li>';
- $output .= '</ul>';
- }
- */
- return $output;
- }
- /**
- * Administrative settings form
- *
- * @ingroup tripal_example
- */
- function tripal_example_admin() {
- $form = array();
- $form['nothing'] = array(
- '#markup' => t('There are currently no settings to configure.')
- );
- return system_settings_form($form);
- }
- /**
- *
- * @ingroup tripal_example
- */
- function tripal_example_admin_validate($form, &$form_state) {
-
- }
|