function biblio_admin_keyword_delete_confirm in Bibliography Module 6
Same name and namespace in other branches
- 6.2 includes/biblio.admin.inc \biblio_admin_keyword_delete_confirm()
- 7 includes/biblio.admin.inc \biblio_admin_keyword_delete_confirm()
- 7.2 includes/biblio.admin.inc \biblio_admin_keyword_delete_confirm()
1 string reference to 'biblio_admin_keyword_delete_confirm'
- biblio_menu in ./
biblio.module - Implementation of hook_menu().
File
- ./
biblio.admin.inc, line 2012
Code
function biblio_admin_keyword_delete_confirm(&$form_state, $keyword_id) {
$base = variable_get('biblio_base', 'biblio');
$keyword = db_fetch_object(db_query('SELECT * FROM {biblio_keyword_data} bkd WHERE bkd.kid = %d ', $keyword_id));
$form['kid'] = array(
'#type' => 'value',
'#value' => $keyword_id,
);
return confirm_form($form, t('Are you sure you want to delete the keyword: %title from ALL publications?', array(
'%title' => $keyword->word,
)), isset($_GET['destination']) ? $_GET['destination'] : $base . '/keywords', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}