function tripal_featuremap_admin

2.x tripal_featuremap.admin.inc tripal_featuremap_admin()
3.x tripal_featuremap.admin.inc tripal_featuremap_admin()
1.x tripal_featuremap.admin.inc tripal_featuremap_admin()

Administrative settings form

Related topics

2 string references to 'tripal_featuremap_admin'
tripal_featuremap_menu in tripal_featuremap/tripal_featuremap.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_featuremap_theme in tripal_featuremap/tripal_featuremap.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_featuremap/includes/tripal_featuremap.admin.inc, line 7

Code

function tripal_featuremap_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 maps
  $active_jobs = FALSE;
  if (tripal_get_module_active_jobs('tripal_featuremap')) {
    $active_jobs = TRUE;
  }

  // add the field set for syncing maps
  if (!$active_jobs) {
    get_tripal_featuremap_admin_form_sync_set($form);
    get_tripal_featuremap_admin_form_cleanup_set($form);
    // TODO: complete coding of indexing and taxonomy assignment to features.    
    //    get_tripal_featuremap_admin_form_reindex_set($form);
    //    get_tripal_featuremap_admin_form_taxonomy_set($form);
  }
  else {
    $form['notice'] = array(
      '#type' => 'fieldset',
      '#title' => t('Feature Map Management Temporarily Unavailable')
    );
    $form['notice']['message'] = array(
      '#value' => t('Currently, feature map 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);
}