You are here

function follow_get_icon_style in Follow 7.2

Load up a single icon style. If no icon style is found with the given name, the small icon style will be returned.

Parameters

string $name: The string machine name of the style.

2 calls to follow_get_icon_style()
FollowTestCase::_testIcons in tests/follow.test
template_preprocess_follow_css in ./follow.module
Implements hook_preprocess_follow_css().

File

./follow.inc, line 449
Follow module API and helper functions.

Code

function follow_get_icon_style($name) {
  $styles = follow_icon_styles();
  return isset($styles[$name]) ? $styles[$name] : $styles['small'];
}