You are here

function block_class_styles_get_style in Block Class Styles 7.2

Same name and namespace in other branches
  1. 7 block_class_styles.module \block_class_styles_get_style()

Return a style by it's css

Parameters

string $css:

Return value

string or FALSE

Related topics

2 calls to block_class_styles_get_style()
block_class_styles_block_view_alter in ./block_class_styles.module
Implements hook_block_view().
block_class_styles_preprocess_block in ./block_class_styles.module
Implements hook_preprocess_block().

File

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

Code

function block_class_styles_get_style($css) {
  $presets = block_class_styles_info();
  return $css && array_key_exists($css, $presets) ? $presets[$css] : FALSE;
}