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