function ad_channel_admin_confirm_delete_channel in Advertisement 6.3
Same name and namespace in other branches
- 5.2 channel/ad_channel.module \ad_channel_admin_confirm_delete_channel()
- 6.2 channel/ad_channel.module \ad_channel_admin_confirm_delete_channel()
- 7 channel/ad_channel.module \ad_channel_admin_confirm_delete_channel()
Confirm whether or not to delete container, and the contained channels.
1 string reference to 'ad_channel_admin_confirm_delete_channel'
- ad_channel_menu in channel/
ad_channel.module - Implementation of hook_menu.
File
- channel/
ad_channel.module, line 1275 - Ad Channel module.
Code
function ad_channel_admin_confirm_delete_channel($form_state, $channel) {
$form = array();
$form['chid'] = array(
'#type' => 'value',
'#value' => $channel->chid,
);
return confirm_form($form, t('Are you sure you want to delete the %name channel?', array(
'%name' => $channel->name,
)), 'admin/content/ad/channel', t('Any advertisements currently assigned to the %name channel will not be deleted, they will be reassigned. <p>This action can not be undone.', array(
'%name' => $channel->name,
)), t('Delete'), t('Cancel'));
}