function command_buttons_entity_delete_form in Command Buttons 7
Menu callback -- ask for confirmation of node deletion
1 string reference to 'command_buttons_entity_delete_form'
- command_buttons_menu in ./
command_buttons.module - Implements hook_menu().
File
- ./
command_buttons.admin.inc, line 89
Code
function command_buttons_entity_delete_form($form, &$form_state, $entity) {
$form_state['entity'] = $entity;
return confirm_form($form, t('Are you sure you want to delete %title?', array(
'%title' => $entity->title,
)), 'admin/structure/command-buttons/view/' . $entity->bid, t('This action cannot be undone. Note that deleting this entity will not delete panes using it, they will exist but display nothing.'), t('Delete'), t('Cancel'));
}