You are here

function beautytips_manager_get_custom_style in BeautyTips 7.2

Same name and namespace in other branches
  1. 8 beautytips_manager/beautytips_manager.module \beautytips_manager_get_custom_style()

Grab a custom style from the database.

3 calls to beautytips_manager_get_custom_style()
beautytips_manager_custom_styles_form in ./beautytips_manager.admin.inc
Form for editing a custom beautytip style.
beautytips_manager_delete_style_confirm_form in ./beautytips_manager.admin.inc
Confirm form for deleting a custom beautytip style.
beautytips_manager_delete_style_page in ./beautytips_manager.admin.inc
Page callback for style deletion form.

File

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

Code

function beautytips_manager_get_custom_style($id) {
  $sql = "SELECT * FROM {beautytips_custom_styles} WHERE id = :id";
  $result = db_query($sql, [
    ':id' => $id,
  ]);
  return $result
    ->fetchObject();
}