You are here

function biblio_admin_keyword_orphans_form_submit in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 includes/biblio.admin.inc \biblio_admin_keyword_orphans_form_submit()
  2. 6 biblio.admin.inc \biblio_admin_keyword_orphans_form_submit()
  3. 7.2 includes/biblio.admin.inc \biblio_admin_keyword_orphans_form_submit()

_state

Parameters

$form:

1 string reference to 'biblio_admin_keyword_orphans_form_submit'
biblio_admin_keyword_orphans_form in includes/biblio.admin.inc
_state

File

includes/biblio.admin.inc, line 2792
biblio.admin.inc

Code

function biblio_admin_keyword_orphans_form_submit($form, &$form_state) {
  $keywords = array_filter($form_state['values']['words']);
  db_delete('biblio_keyword_data')
    ->condition('kid', $keywords, 'IN')
    ->execute();
  drupal_set_message(t('%count orphaned keywords have been deleted.', array(
    '%count' => count($keywords),
  )));
}