function biblio_admin_orphans_form_submit in Bibliography Module 6
Same name and namespace in other branches
- 6.2 includes/biblio.admin.inc \biblio_admin_orphans_form_submit()
- 7 includes/biblio.admin.inc \biblio_admin_orphans_form_submit()
- 7.2 includes/biblio.admin.inc \biblio_admin_orphans_form_submit()
1 string reference to 'biblio_admin_orphans_form_submit'
File
- ./
biblio.admin.inc, line 1906
Code
function biblio_admin_orphans_form_submit($form, &$form_state) {
// Filter out unchecked authors
$authors = array_filter($form_state['values']['authors']);
update_sql('DELETE FROM {biblio_contributor_data} WHERE cid IN (' . implode(',', $authors) . ')');
drupal_set_message(t('The orphaned authors (' . implode(',', $authors) . ') have been deleted.'));
}