function jquery_countdown_block_delete in jQuery Countdown 6
Form builder for the countdown block deletion form.
1 string reference to 'jquery_countdown_block_delete'
- jquery_countdown_block_menu in jquery_countdown_block/
jquery_countdown_block.module - Implements hook_menu().
File
- jquery_countdown_block/
jquery_countdown_block.admin.inc, line 10 - Provides infrequently used functions for jquery_countdown_block.
Code
function jquery_countdown_block_delete(&$form_state, $delta = 0) {
$block_settings = variable_get("jquery_countdown_block_{$delta}_settings", NULL);
$title = isset($block_settings['admin_title']) ? $block_settings['admin_title'] : 'Countdown Block ' . $delta;
$form['block_title'] = array(
'#type' => 'value',
'#value' => $title,
);
$form['delta'] = array(
'#type' => 'value',
'#value' => $delta,
);
return confirm_form($form, t('Are you sure you want to delete the "%name" block?', array(
'%name' => $title,
)), 'admin/build/block', NULL, t('Delete'), t('Cancel'));
}