function ad_ui_delete_form in Advertisement 7.2
Confirmation form for deleting an ad.
1 string reference to 'ad_ui_delete_form'
- ad_ui_menu in ./
ad_ui.module - Implements hook_menu().
File
- includes/
ad_ui.inc, line 155
Code
function ad_ui_delete_form($form, &$form_state, $ad) {
$form_state['ad'] = $ad;
$form = confirm_form($form, t('Are you sure you want to delete %title?', array(
'%title' => $ad->title,
)), 'admin/ad', '<p>' . t('Deleting this advertisement cannot be undone.') . '</p>', t('Delete'), t('Cancel'), 'confirm');
return $form;
}