You are here

function beautytips_manager_get_custom_styles in BeautyTips 7.2

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

Get all defined custom styles.

2 calls to beautytips_manager_get_custom_styles()
beautytips_manager_define_beautytips_styles in ./beautytips_manager.module
Implements hook_define_beautytips_styles().
beautytips_manager_styles_manager_page in ./beautytips_manager.admin.inc
Page callback for custom styles administration.

File

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

Code

function beautytips_manager_get_custom_styles() {
  $styles = [];
  $results = db_query("SELECT * FROM {beautytips_custom_styles}");
  foreach ($results as $result) {
    $styles[$result->id] = $result;
  }
  return $styles;
}