function beautytips_manager_get_custom_tip in BeautyTips 8
Same name and namespace in other branches
- 6.2 beautytips_manager.module \beautytips_manager_get_custom_tip()
- 7.2 beautytips_manager.module \beautytips_manager_get_custom_tip()
Retrieves a single custom beautytip.
2 calls to beautytips_manager_get_custom_tip()
- CustomTipsDeleteForm::buildForm in beautytips_manager/
src/ Form/ CustomTipsDeleteForm.php - Form constructor.
- CustomTipsEditForm::buildForm in beautytips_manager/
src/ Form/ CustomTipsEditForm.php - Form constructor.
File
- beautytips_manager/
beautytips_manager.module, line 172 - Code related to defining and displaying custom beautytips and styles.
Code
function beautytips_manager_get_custom_tip($id) {
$sql = "SELECT * FROM {beautytips_custom_tips} WHERE id = :id";
$result = \Drupal::database()
->query($sql, [
':id' => $id,
]);
return $result
->fetchObject();
}