function biblio_advanced_import_form_biblio_admin_settings_alter in Biblio Advanced Import 7
Same name and namespace in other branches
- 6 biblio_advanced_import.module \biblio_advanced_import_form_biblio_admin_settings_alter()
@todo Please document this function.
See also
File
- ./
biblio_advanced_import.module, line 350 - Biblio add-on.
Code
function biblio_advanced_import_form_biblio_admin_settings_alter(&$form, &$form_state) {
if ('fields' == variable_get('biblio_advanced_import_citekey_creation_strategy', 'biblio')) {
$form['citekey']['biblio_citekey_field1']['#type'] = 'value';
$form['citekey']['biblio_citekey_field1']['#value'] = $form['citekey']['biblio_citekey_field1']['#default_value'];
$form['citekey']['biblio_citekey_field2']['#type'] = 'value';
$form['citekey']['biblio_citekey_field2']['#value'] = $form['citekey']['biblio_citekey_field2']['#default_value'];
$form['citekey']['biblio_citekey_phpcode']['#type'] = 'value';
$form['citekey']['biblio_citekey_phpcode']['#value'] = $form['citekey']['biblio_citekey_phpcode']['#default_value'];
}
}