You are here

function biblio_contributor_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_contributor_delete_confirm'
biblio_menu in ./biblio.module
Implements hook_menu().

File

./biblio.module, line 3595

Code

function biblio_contributor_delete_confirm($form, &$form_state, $contributor) {
  $form['#contributor'] = $contributor;

  // Always provide entity id in the same form key as in the entity edit form
  $form['cid'] = array(
    '#type' => 'value',
    '#value' => $contributor->cid,
  );
  return confirm_form($form, t('Are you sure you want to delete %title?', array(
    '%title' => $contributor->title,
  )), 'biblio/contributor/' . $contributor->cid, t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}