You are here

function pollim_delete_form in Poll Improved 7

Form callback: confirmation form for deleting a pollim.

Parameters

$pollim: The pollim to delete

See also

confirm_form()

1 string reference to 'pollim_delete_form'
pollim_delete_form_wrapper in ./pollim.admin.inc
Form callback wrapper: delete a pollim.

File

./pollim.admin.inc, line 270
Pollim editing UI.

Code

function pollim_delete_form($form, &$form_state, $pollim) {
  $form_state['pollim'] = $pollim;
  $form['#submit'][] = 'pollim_delete_form_submit';
  $form = confirm_form($form, t('Are you sure you want to delete poll %name?', array(
    '%name' => $pollim->name,
  )), 'admin/content/pollims/pollim', '<p>' . t('This action cannot be undone.') . '</p>', t('Delete'), t('Cancel'), 'confirm');
  return $form;
}