function styleguide_palette_swatch_delete_form in Style Guide 7
Form constructor for the swatch deletion confirmation form.
Parameters
array $swatch: The swatch to be deleted.
See also
styleguide_palette_swatch_delete_form_submit()
1 string reference to 'styleguide_palette_swatch_delete_form'
- styleguide_palette_menu in styleguide_palette/
styleguide_palette.module - Implements hook_menu().
File
- styleguide_palette/
styleguide_palette.admin.inc, line 183 - Administrative page callbacks for the Style Guide Swatch module.
Code
function styleguide_palette_swatch_delete_form($form, &$form_state, array $swatch) {
$form['swatch_id'] = array(
'#type' => 'value',
'#value' => $swatch['id'],
);
return confirm_form($form, t('Are you sure you want to delete %title?', array(
'%title' => $swatch['name'],
)), 'admin/config/user-interface/styleguide-palette/edit', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}