You are here

function _follow_style_icon_path in Follow 7.2

Helper function to determine the icon path for a icon style.

Parameters

array $style: The style to check.

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

File

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

Code

function _follow_style_icon_path(array $style) {
  $default_icon_path = drupal_get_path('module', 'follow') . '/icons/' . $style['name'];
  $path = !empty($style['icon-path']) ? $style['icon-path'] : $default_icon_path;
  return base_path() . $path;
}