function tripal_library_admin

2.x tripal_library.admin.inc tripal_library_admin()
3.x tripal_library.admin.inc tripal_library_admin()
1.x tripal_library.admin.inc tripal_library_admin()

Administrative settings form

Related topics

2 string references to 'tripal_library_admin'
tripal_library_menu in tripal_library/tripal_library.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_library_theme in tripal_library/tripal_library.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_library/includes/tripal_library.admin.inc, line 9

Code

function tripal_library_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_library')) {
    $active_jobs = TRUE;
  }

  // add the field set for syncing libraries
  if (!$active_jobs) {
    get_tripal_library_admin_form_sync_set($form);
    get_tripal_library_admin_form_reindex_set($form);
    get_tripal_library_admin_form_taxonomy_set($form);
    get_tripal_library_admin_form_cleanup_set($form);
  }
  else {
    $form['notice'] = array(
      '#type' => 'fieldset',
      '#title' => t('Library Management Temporarily Unavailable')
    );
    $form['notice']['message'] = array(
      '#value' => t('Currently, library 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);
}