function get_tripal_feature_admin_form_cleanup_set

1.x tripal_feature.admin.inc get_tripal_feature_admin_form_cleanup_set(&$form)

Related topics

1 call to get_tripal_feature_admin_form_cleanup_set()
tripal_feature_admin in tripal_feature/includes/tripal_feature.admin.inc

File

tripal_feature/includes/tripal_feature.admin.inc, line 204
@todo Add file header description

Code

function get_tripal_feature_admin_form_cleanup_set(&$form) {
  $form['cleanup'] = array(
    '#type' => 'fieldset',
    '#title' => t('Clean Up'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
  );
  $form['cleanup']['description'] = array(
    '#type' => 'item',
    '#value' => t("With Drupal and chado residing in different databases " .
      "it is possible that nodes in Drupal and features in Chado become " .
      "\"orphaned\".  This can occur if a feature node in Drupal is " .
      "deleted but the corresponding chado feature is not and/or vice " .
      "versa.  The Cleanup function will also remove nodes for features " .
      "that are not in the list of allowed feature types as specified " .
      "above.  This is helpful when a feature type needs to be " .
      "removed but was previously present as Drupal nodes. " .
      "Click the button below to resolve these discrepancies."),
    '#weight' => 1,
  );
  $form['cleanup']['button'] = array(
    '#type' => 'submit',
    '#value' => t('Clean up orphaned features'),
    '#weight' => 2,
  );
}