function biblio_citeproc_set_site_default in Bibliography Module 7
1 string reference to 'biblio_citeproc_set_site_default'
- biblio_citeproc_style_manager_form in modules/
CiteProc/ biblio_citeproc.admin.inc
File
- modules/
CiteProc/ biblio_citeproc.admin.inc, line 227
Code
function biblio_citeproc_set_site_default($form, &$form_state) {
if (count($form_state['values']['installed_styles']) == 1) {
$def = array_shift($form_state['values']['installed_styles']);
variable_set('biblio_citeproc_style', $def);
}
else {
form_set_error('installed_styles', t('You may only select one style when setting the default'));
}
}