You are here

function beautytips_manager_delete_custom_tip in BeautyTips 8

Same name and namespace in other branches
  1. 6.2 beautytips_manager.module \beautytips_manager_delete_custom_tip()
  2. 7.2 beautytips_manager.module \beautytips_manager_delete_custom_tip()

Delete a singular custom beautytip.

1 call to beautytips_manager_delete_custom_tip()
CustomTipsDeleteForm::submitForm in beautytips_manager/src/Form/CustomTipsDeleteForm.php
Form submission handler.

File

beautytips_manager/beautytips_manager.module, line 96
Code related to defining and displaying custom beautytips and styles.

Code

function beautytips_manager_delete_custom_tip($id) {
  \Drupal::database()
    ->delete('beautytips_custom_tips')
    ->condition('id', $id)
    ->execute();
}