function ds_build_mode_delete_form in Display Suite 6.2
Same name and namespace in other branches
- 6.3 includes/ds.buildmodes.inc \ds_build_mode_delete_form()
- 6 includes/ds.buildmodes.inc \ds_build_mode_delete_form()
Build mode delete form.
Parameters
string $module The module name.:
string $build_mode The build mode to delete.:
1 string reference to 'ds_build_mode_delete_form'
- ds_build_modes_page in includes/
ds.buildmodes.inc - Build modes overview.
File
- includes/
ds.buildmodes.inc, line 206 - Manage build modes.
Code
function ds_build_mode_delete_form($form_state, $module, $build_mode) {
$form = array();
$form['question'] = array(
'#type' => 'markup',
'#value' => '<p>' . t('Are you sure you want to delete the build mode %build_mode ?', array(
'%build_mode' => $build_mode,
)) . '</p>',
);
$form['display'] = array(
'#type' => 'value',
'#value' => $build_mode,
);
$form['button']['submit'] = array(
'#prefix' => '<div>',
'#type' => 'submit',
'#value' => t('Delete'),
);
$form['buttons']['cancel'] = array(
'#suffix' => '</div>',
'#type' => 'markup',
'#value' => l('cancel', DS_PATH_MODULES . '/' . $module . '/buildmodes'),
);
$form['#module'] = $module;
return $form;
}