You are here

function mediafront_preset_delete in MediaFront 6

Same name and namespace in other branches
  1. 6.2 includes/mediafront.preset.inc \mediafront_preset_delete()
  2. 7.2 includes/mediafront.preset.inc \mediafront_preset_delete()
  3. 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 627

Code

function mediafront_preset_delete($preset_name) {

  // Delete the preset.
  db_query("DELETE FROM {mediafront_preset} WHERE name='%s'", $preset_name);

  // Rebuild Theme Registry
  drupal_rebuild_theme_registry();
}