function get_tripal_analysis_admin_form_cleanup_set
1.x tripal_analysis.admin.inc | get_tripal_analysis_admin_form_cleanup_set(&$form) |
The "Clean-up orphaned analysis & nodes" Form
Parameters
$form: The administrative form as it is currently
Return value
A form API array describing an administrative form
Related topics
1 call to get_tripal_analysis_admin_form_cleanup_set()
- tripal_analysis_admin in tripal_analysis/
includes/ tripal_analysis.admin.inc - Administration page callbacks for the Tripal Analysis module
File
- tripal_analysis/
includes/ tripal_analysis.admin.inc, line 198 - Contains functions displaying administrative pages and forms
Code
function get_tripal_analysis_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 analyses in Chado become " .
"\"orphaned\". This can occur if an analysis node in Drupal is " .
"deleted but the corresponding chado analysis 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 analyses'),
'#weight' => 2,
);
}