You are here

function word_link_delete_form in Word Link 7.2

Form builder for delete confirm page.

1 string reference to 'word_link_delete_form'
word_link_menu in ./word_link.module
Implements hook_menu().

File

./word_link.admin.inc, line 231
Administrative pages for the Word Link module.

Code

function word_link_delete_form($form, &$form_state, $word) {
  $form['#word'] = $word;
  $form['id'] = array(
    '#type' => 'value',
    '#value' => $word->id,
  );
  return confirm_form($form, t('Are you sure you want to delete %title?', array(
    '%title' => $word->text,
  )), 'admin/config/content/word-link/list', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}