function tripal_organism_admin

2.x tripal_organism.admin.inc tripal_organism_admin()
3.x tripal_organism.admin.inc tripal_organism_admin()
1.x tripal_organism.admin.inc tripal_organism_admin()

Administrative settings for chado_orgnism

Related topics

2 string references to 'tripal_organism_admin'
tripal_organism_menu in tripal_organism/tripal_organism.module
Menu items are automatically added for the new node types created by this module to the 'Create Content' Navigation menu item. This function adds more menu items needed for this module.
tripal_organism_theme in tripal_organism/tripal_organism.module
We need to let drupal know about our theme functions and their arguments. We create theme functions to allow users of the module to customize the look and feel of the output generated in this module

File

tripal_organism/includes/tripal_organism.admin.inc, line 8

Code

function tripal_organism_admin() {

  $form = array();

  // before proceeding check to see if we have any
  // currently processing jobs. If so, we don't want
  // to give the opportunity to sync libraries
  $active_jobs = FALSE;
  if (tripal_get_module_active_jobs('tripal_organism')) {
    $active_jobs = TRUE;
  }

  // add the field set for syncing libraries
  if (!$active_jobs) {
    get_tripal_organism_admin_form_sync_set($form);
    get_tripal_organism_admin_form_reindex_set($form);
    get_tripal_organism_admin_form_taxonomy_set($form);
    get_tripal_organism_admin_form_cleanup_set($form);
  }
  else {
    $form['notice'] = array(
      '#type' => 'fieldset',
      '#title' => t('Organism Management Temporarily Unavailable')
    );
    $form['notice']['message'] = array(
      '#value' => t('Currently, organism management jobs are waiting or are running. . Managemment features have been hidden until these jobs complete.  Please check back later once these jobs have finished.  You can view the status of pending jobs in the Tripal jobs page.'),
    );
  }

  return system_settings_form($form);
}