function get_tripal_library_admin_form_cleanup_set

1.x tripal_library.admin.inc get_tripal_library_admin_form_cleanup_set(&$form)

Related topics

1 call to get_tripal_library_admin_form_cleanup_set()
tripal_library_admin in tripal_library/includes/tripal_library.admin.inc
Administrative settings form

File

tripal_library/includes/tripal_library.admin.inc, line 46

Code

function get_tripal_library_admin_form_cleanup_set(&$form) {
  $form['cleanup'] = array(
    '#type' => 'fieldset',
    '#title' => t('Clean Up')
  );
  $form['cleanup']['description'] = array(
    '#type' => 'item',
    '#value' => t("With Drupal and chado residing in different databases " .
      "it is possible that nodes in Drupal and libraries in Chado become " .
      "\"orphaned\".  This can occur if an library node in Drupal is " .
      "deleted but the corresponding chado library is not and/or vice " .
      "versa. Click the button below to resolve these discrepancies."),
    '#weight' => 1,
  );
  $form['cleanup']['button'] = array(
    '#type' => 'submit',
    '#value' => t('Clean up orphaned libraries'),
    '#weight' => 2,
  );
}