You are here

function ad_channel_admin_confirm_delete_container in Advertisement 5.2

Same name and namespace in other branches
  1. 6.3 channel/ad_channel.module \ad_channel_admin_confirm_delete_container()
  2. 6.2 channel/ad_channel.module \ad_channel_admin_confirm_delete_container()
  3. 7 channel/ad_channel.module \ad_channel_admin_confirm_delete_container()

Confirm whether or not to delete container, and the contained channels.

1 string reference to 'ad_channel_admin_confirm_delete_container'
ad_channel_menu in channel/ad_channel.module
Implementation of hook_menu.

File

channel/ad_channel.module, line 564
Ad Channel

Code

function ad_channel_admin_confirm_delete_container($conid) {
  $form = array();
  $container = _ad_channel_get_containers($conid);
  $form['conid'] = array(
    '#type' => 'value',
    '#value' => $conid,
  );
  return confirm_form($form, t('Are you sure you want to delete the %name container?', array(
    '%name' => $container->name,
  )), 'admin/content/ad/channel', t('Any channels currently assigned to the %name container will not be deleted, they will be reassigned. <p>This action can not be undone.', array(
    '%name' => $container->name,
  )), t('Delete'), t('Cancel'));
}