You are here

function biblio_admin_keyword_delete_confirm in Bibliography Module 7

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

_state

Parameters

$form:

$keyword_id:

1 string reference to 'biblio_admin_keyword_delete_confirm'
biblio_menu in ./biblio.module
Implements hook_menu().

File

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

Code

function biblio_admin_keyword_delete_confirm($form, &$form_state, $keyword_id) {
  $base = variable_get('biblio_base', 'biblio');
  $keyword = db_query('SELECT * FROM {biblio_keyword_data} bkd WHERE bkd.kid = :kid ', array(
    ':kid' => $keyword_id,
  ))
    ->fetchObject();
  $form['kid'] = array(
    '#type' => 'value',
    '#value' => $keyword_id,
  );
  return confirm_form($form, t('Are you sure you want to delete the keyword: %word from ALL publications?', array(
    '%word' => $keyword->word,
  )), isset($_GET['destination']) ? $_GET['destination'] : $base . '/keywords', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}