function boxes_delete_form in Boxes 7
Same name and namespace in other branches
- 6 boxes.admin.inc \boxes_delete_form()
Box deletion form.
1 string reference to 'boxes_delete_form'
- boxes_menu in ./
boxes.module - Implements hook_menu().
File
- ./
boxes.admin.inc, line 48
Code
function boxes_delete_form($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/structure/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/structure/block', '', t('Delete'), t('Cancel'));
}
drupal_not_found();
die;
}