function tripal_feature_delete_form
2.x tripal_feature.delete.inc | tripal_feature_delete_form() |
3.x tripal_feature.delete.inc | tripal_feature_delete_form() |
1.x tripal_feature-delete.inc | tripal_feature_delete_form() |
A form for indicating the features to delete
Related topics
1 string reference to 'tripal_feature_delete_form'
- tripal_feature_menu in tripal_feature/
tripal_feature.module - Implements hook_menu().
File
- tripal_feature/
includes/ tripal_feature.delete.inc, line 12 - Administration Interface for deleting multiple features
Code
function tripal_feature_delete_form() {
$form['desc'] = array(
'#markup' => t("Use one or more of the following fields to identify sets of features to be deleted."),
);
$form['feature_names'] = array(
'#type' => 'textarea',
'#title' => t('Feature Names'),
'#description' => t('Please provide a list of feature names or unique names,
separated by spaces or by new lines to be delete. If you specify feature names then
all other options below will be ignored (except the unique checkbox).'),
);
$form['is_unique'] = array(
'#title' => t('Names are Unique Names'),
'#type' => 'checkbox',
'#description' => t('Select this checbox if the names listed in the feature
names box above are the unique name of the feature rather than the human readable names.'),
);
$cv = tripal_get_cv(array('name' => 'sequence'));
$form['seq_type'] = array(
'#title' => t('Feature Type'),
'#type' => 'textfield',
'#description' => t("Choose the feature type."),
'#autocomplete_path' => "admin/tripal/chado/tripal_cv/cvterm/auto_name/$cv->cv_id",
);
$organisms = tripal_get_organism_select_options(FALSE);
$form['organism_id'] = array(
'#title' => t('Organism'),
'#type' => 'select',
'#description' => t("Choose the organism for which features will be deleted."),
'#options' => $organisms,
);
$analyses = tripal_get_analysis_select_options(FALSE);
$form['analysis_id'] = array(
'#title' => t('Analysis'),
'#type' => t('select'),
'#description' => t("Choose the analysis for which associated features will be deleted."),
'#options' => $analyses,
);
$form['button'] = array(
'#type' => 'submit',
'#value' => t('Delete Features'),
);
return $form;
}