You are here

function beautytips_manager_get_custom_styles in BeautyTips 8

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

Get all defined custom styles.

2 calls to beautytips_manager_get_custom_styles()
BeautytipsManagerController::customStylesOverview in beautytips_manager/src/Controller/BeautytipsManagerController.php
Custom styles administration.
beautytips_manager_define_beautytips_styles in beautytips_manager/beautytips_manager.module
Implements hook_define_beautytips_styles().

File

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

Code

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