You are here

function beautytips_get_styles in BeautyTips 6.2

Same name and namespace in other branches
  1. 8 beautytips.module \beautytips_get_styles()
  2. 7.2 beautytips.module \beautytips_get_styles()

Get all the defined beautytips styles

3 calls to beautytips_get_styles()
beautytips_admin in ./beautytips.admin.inc
Menu callback - beautytips admin settings form TODO: Add animation options.
beautytips_get_style in ./beautytips.module
Get an array of options that defines a particular style
beautytips_manager_admin in ./beautytips_manager.module
Form for configuring custom beautytips.

File

./beautytips.module, line 123
Provides API for adding beautytips to pages. TODO: Add status about excanvas on status page.

Code

function beautytips_get_styles($reload = FALSE) {
  $cache = cache_get('beautytips:beautytips-styles');
  if (!$cache || $reload) {
    $styles = module_invoke_all('define_beautytips_styles');

    // Save the beautytips style registry in the cache.
    cache_set('beautytips:beautytips-styles', $styles);
  }
  else {
    $styles = $cache->data;
  }
  return $styles;
}