function gridbuilder_delete_confirm in Grid builder 8
Page callback: Form constructor for grid deletion confirmation form.
See also
1 string reference to 'gridbuilder_delete_confirm'
- gridbuilder_menu in ./
gridbuilder.module - Implements hook_menu().
File
- ./
gridbuilder.admin.inc, line 45 - Administration functions to maintain a common set of grids for layouts.
Code
function gridbuilder_delete_confirm($form, &$form_state, Grid $grid) {
// Always provide entity id in the same form key as in the entity edit form.
$form['id'] = array(
'#type' => 'value',
'#value' => $grid
->id(),
);
$form_state['grid'] = $grid;
return confirm_form($form, t('Are you sure you want to remove the grid %title?', array(
'%title' => $grid
->label(),
)), 'admin/structure/grids', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}