function tripal_project_admin

2.x tripal_project.admin.inc tripal_project_admin($form, $form_state)
3.x tripal_project.admin.inc tripal_project_admin($form, $form_state)
1.x tripal_project.admin.inc tripal_project_admin($form_state = NULL)
2 string references to 'tripal_project_admin'
tripal_project_menu in tripal_project/tripal_project.module
Implements hook_menu
tripal_project_theme in tripal_project/tripal_project.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_project/includes/tripal_project.admin.inc, line 7
@todo Add file header description

Code

function tripal_project_admin($form_state = NULL) {
  $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_project')) {
    $active_jobs = TRUE;
  }

  // add the field set for syncing libraries
  if (!$active_jobs) {
    get_tripal_project_admin_form_sync_set($form);
    get_tripal_project_admin_form_cleanup_set($form);
    //    get_tripal_project_admin_form_reindex_set($form);

  }
  else {
    $form['notice'] = array(
      '#type' => 'fieldset',
      '#title' => t('Project Management Temporarily Unavailable')
    );
    $form['notice']['message'] = array(
      '#value' => t('Currently, project 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);
}