function boxes_delete_form in Boxes 6
Same name and namespace in other branches
- 7 boxes.admin.inc \boxes_delete_form()
Box deletion form.
1 string reference to 'boxes_delete_form'
- boxes_menu in ./
boxes.module - Implementation of hook_menu().
File
- ./
boxes.admin.inc, line 47
Code
function boxes_delete_form($form_state, $box) {
$form['delta'] = array(
'#type' => 'hidden',
'#value' => $box->delta,
);
if ($box->export_type & EXPORT_IN_DATABASE && $box->export_type & EXPORT_IN_CODE) {
return confirm_form($form, t('Are you sure you want to revert the block %name?', array(
'%name' => $box->title,
)), 'admin/build/block', '', t('Revert'), t('Cancel'));
}
elseif (!($box->export_type & EXPORT_IN_CODE)) {
return confirm_form($form, t('Are you sure you want to delete the block %name?', array(
'%name' => $box->title,
)), 'admin/build/block', '', t('Delete'), t('Cancel'));
}
drupal_not_found();
die;
}