function beautytips_manager_get_custom_tip in BeautyTips 7.2
Same name and namespace in other branches
- 8 beautytips_manager/beautytips_manager.module \beautytips_manager_get_custom_tip()
- 6.2 beautytips_manager.module \beautytips_manager_get_custom_tip()
Retrieves a single custom beautytip.
2 calls to beautytips_manager_get_custom_tip()
- beautytips_manager_custom_tips_form in ./
beautytips_manager.admin.inc - Form for configuring custom beautytips.
- beautytips_manager_delete_tip_confirm_form in ./
beautytips_manager.admin.inc - Confirm form for deleting a custom beautytip.
File
- ./
beautytips_manager.module, line 208 - 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 = db_query($sql, [
':id' => $id,
]);
return $result
->fetchObject();
}