function get_tripal_stock_admin_form_cleanup_set

1.x tripal_stock.admin.inc get_tripal_stock_admin_form_cleanup_set(&$form)

Related topics

1 call to get_tripal_stock_admin_form_cleanup_set()
tripal_stock_admin in tripal_stock/includes/tripal_stock.admin.inc
Purpose: Provide administration options for chado_stocks

File

tripal_stock/includes/tripal_stock.admin.inc, line 226
@todo Add file header description

Code

function get_tripal_stock_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 stocks in Chado become " .
      "\"orphaned\".  This can occur if an stock node in Drupal is " .
      "deleted but the corresponding chado stock 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 stocks'),
    '#weight' => 2,
  );
}