You are here

function block_class_styles_get_css_by_style in Block Class Styles 7.2

Returns an array of css classes for a given style name.

Parameters

$style The human readable declaration of a style.:

Return value

null|array

Related topics

1 call to block_class_styles_get_css_by_style()
_block_class_styles_theme_hook_suggestion in ./block_class_styles.module
Return the theme_hook_suggestion for a style

File

./block_class_styles.module, line 170
Base module file for block_class_styles

Code

function block_class_styles_get_css_by_style($style) {
  $info = block_class_styles_info();
  $classes = array_search($style, $info);
  return empty($classes) ? NULL : explode(' ', $classes);
}