function styleguide_palette_swatch_delete in Style Guide 7
Deletes a color swatch.
Parameters
int $swatch_id: The swatch ID.
1 call to styleguide_palette_swatch_delete()
- styleguide_palette_swatch_delete_form_submit in styleguide_palette/
styleguide_palette.admin.inc - Form submission handler for styleguide_palette_swatch_delete_form().
File
- styleguide_palette/
styleguide_palette.module, line 147 - Stores and displays color palettes and swatches.
Code
function styleguide_palette_swatch_delete($swatch_id) {
return db_delete('styleguide_palette_swatch')
->condition('id', $swatch_id)
->execute();
}