function tripal_pub_remote_alter_form_PMID
2.x tripal_pub.PMID.inc | tripal_pub_remote_alter_form_PMID($form, $form_state, $num_criteria = 1) |
3.x tripal_chado.pub_importer_PMID.inc | tripal_pub_remote_alter_form_PMID($form, $form_state, |
1.x PMID.inc | tripal_pub_remote_alter_form_PMID($form, $form_state) |
File
- tripal_pub/
includes/ importers/ PMID.inc, line 12 - Tripal Pub PubMed Interface
Code
function tripal_pub_remote_alter_form_PMID($form, $form_state) {
$num_criteria = $form['num_criteria']['#default_value'];
// PubMed doesn't have an 'Abstract' field, so we need to convert the criteria
// from 'Abstract' to 'Title/Abstract'
for ($i = 1; $i <= $num_criteria; $i++) {
$form['criteria'][$i]["scope-$i"]['#options']['abstract'] = 'Abstract/Title';
}
return $form;
}