function biblio_delete_confirm in Bibliography Module 7.2
Rather than build a complete form, we will simply pass data on to a utility function of the Form API called confirm_form().
_state
Parameters
type $form:
type $biblio:
Return value
type
1 string reference to 'biblio_delete_confirm'
- biblio_menu in ./
biblio.module - Implements hook_menu().
File
- ./
biblio.module, line 3231
Code
function biblio_delete_confirm($form, &$form_state, $biblio) {
$wrapper = biblio_wrapper($biblio);
$form['#biblio'] = $biblio;
// Always provide entity id in the same form key as in the entity edit form
$form['bid'] = array(
'#type' => 'value',
'#value' => $biblio->bid,
);
return confirm_form($form, t('Are you sure you want to delete %title?', array(
'%title' => $wrapper->biblio_title
->value(),
)), 'biblio/' . $biblio->bid, t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}