function beautytips_get_styles in BeautyTips 7.2
Same name and namespace in other branches
- 8 beautytips.module \beautytips_get_styles()
- 6.2 beautytips.module \beautytips_get_styles()
Get all the defined beautytips styles
4 calls to beautytips_get_styles()
- beautytips_add_js in ./
beautytips.module - Add the basic beautytips javascript to the page.
- beautytips_admin in ./
beautytips.admin.inc - Menu callback - beautytips admin settings form
- beautytips_get_style in ./
beautytips.module - Get an array of options that defines a particular style
- beautytips_manager_custom_tips_form in ./
beautytips_manager.admin.inc - Form for configuring custom beautytips.
File
- ./
beautytips.module, line 159 - Provides API for adding beautytips to pages.
Code
function beautytips_get_styles($reload = FALSE) {
$cache = cache_get('beautytips:beautytips-styles');
if (!$cache || $reload) {
$styles = module_invoke_all('define_beautytips_styles');
drupal_alter('define_beautytips_styles', $styles);
// Save the beautytips style registry in the cache.
cache_set('beautytips:beautytips-styles', $styles);
}
else {
$styles = $cache->data;
}
return $styles;
}