You are here

function pm_preprocess_pm_icon in Drupal PM (Project Management) 7.3

Implements hook_preprocess_pm_icon().

File

./pm.theme.inc, line 75
Provides theme functions for Project Management modules.

Code

function pm_preprocess_pm_icon(&$vars) {
  $icon = check_plain($vars['icon']);
  $title = check_plain($vars['title']);
  $icon = str_replace(' ', '_', $icon);
  $vars['class'] = pm_helper_get_fa_icon($icon);
}