function dynamic_banner_admin_delete_confirm in Dynamic Banner 6
Same name and namespace in other branches
- 7.2 dynamic_banner.module \dynamic_banner_admin_delete_confirm()
- 7 includes/callbacks.inc \dynamic_banner_admin_delete_confirm()
- 8.x dynamic_banner.module \dynamic_banner_admin_delete_confirm()
Menu callback; confirms deleting a Banner
1 string reference to 'dynamic_banner_admin_delete_confirm'
- dynamic_banner_menu in ./
dynamic_banner.module - Implements hook_menu().
File
- includes/
callbacks.inc, line 266 - Dynamic Banner Admin Pages and various other functions to make them work Most of the code in this file was derived from path module
Code
function dynamic_banner_admin_delete_confirm($form_state, $dbid) {
$path = _dynamic_banner_load($dbid);
if (user_access('administer dynamic_banner')) {
$form['dbid'] = array(
'#type' => 'value',
'#value' => $dbid,
);
$output = confirm_form($form, t('Are you sure you want to delete banner %title?', array(
'%title' => $path['path'],
)), isset($_GET['destination']) ? $_GET['destination'] : 'admin/build/banners');
}
return $output;
}