function imageblock_delete_block_form in Image Block 6
Menu callback: confirm deletion of image blocks.
1 string reference to 'imageblock_delete_block_form'
- imageblock_menu in ./
imageblock.module - Implements hook_menu().
File
- ./
imageblock.module, line 283 - imageblock.module Primarily Drupal hooks.
Code
function imageblock_delete_block_form(&$form_state, $delta = 0) {
$title = db_result(db_query("SELECT info FROM {imageblock} WHERE bid = %d", $delta));
$form['block_title'] = array(
'#type' => 'hidden',
'#value' => $title,
);
$form['delta'] = array(
'#type' => 'hidden',
'#value' => $delta,
);
return confirm_form($form, t('Are you sure you want to delete the image block "%name"?', array(
'%name' => $title,
)), 'admin/build/block', NULL, t('Delete'), t('Cancel'));
}