You are here

function mediafront_preset_delete in MediaFront 7

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

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();
}