function tripal_feature_delete_form_validate
2.x tripal_feature.delete.inc | tripal_feature_delete_form_validate($form, &$form_state) |
3.x tripal_feature.delete.inc | tripal_feature_delete_form_validate($form, &$form_state) |
1.x tripal_feature-delete.inc | tripal_feature_delete_form_validate($form, &$form_state) |
Validation for the delete features form
Related topics
File
- tripal_feature/
includes/ tripal_feature.delete.inc, line 66 - Administration Interface for deleting multiple features
Code
function tripal_feature_delete_form_validate($form, &$form_state) {
$organism_id = $form_state['values']['organism_id'];
$seq_type = trim($form_state['values']['seq_type']);
$analysis_id = $form_state['values']['analysis_id'];
$is_unique = $form_state['values']['is_unique'];
$feature_names = $form_state['values']['feature_names'];
if (!$analysis_id and !$organism_id and !$seq_type and !$feature_names) {
form_set_error('feature_names', t("Please select at least one option"));
}
}