function cumulus_delete in Cumulus 7
Menu callback: confirm deletion of cumulus blocks.
1 string reference to 'cumulus_delete'
- _cumulus_menu in ./
cumulus.admin.inc - Implements hook_menu().
File
- ./
cumulus.admin.inc, line 113
Code
function cumulus_delete($form, &$form_state, $delta = 0) {
$config = cumulus_get_config($delta);
$title = check_plain($config['info']);
$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 "%name" block?', array(
'%name' => $title,
)), 'admin/structure/block', NULL, t('Delete'), t('Cancel'));
}