function mediafront_preset_delete in MediaFront 7.2
Same name and namespace in other branches
- 6.2 includes/mediafront.preset.inc \mediafront_preset_delete()
- 6 includes/mediafront.preset.inc \mediafront_preset_delete()
- 7 includes/mediafront.preset.inc \mediafront_preset_delete()
Deletes a preset
2 calls to mediafront_preset_delete()
- mediafront_features_revert in includes/
mediafront.features.inc - Implementation of hook_features_revert().
- mediafront_preset_delete_confirm_submit in includes/
mediafront.preset.inc - Execute preset deletion
File
- includes/
mediafront.preset.inc, line 672
Code
function mediafront_preset_delete($preset_name) {
// Delete the preset.
db_delete('mediafront_preset')
->condition('name', $preset_name)
->execute();
// Rebuild Theme Registry
drupal_theme_rebuild();
}