You are here

function _vscc_element_icon in Views Slideshow Configurable Controls 7

2 calls to _vscc_element_icon()
theme_vscc_element_black_icons in theme/vscc.theme.inc
theme_vscc_element_white_icons in theme/vscc.theme.inc

File

theme/vscc.theme.inc, line 42
Views Slideshow Configurable Controls theme callbacks.

Code

function _vscc_element_icon($vars) {
  switch ($vars['element']) {
    case 'pause':
      $image = 'pause';
      break;
    case 'previous':
      $image = 'arrow_left';
      break;
    case 'resume':
    case 'next':
      $image = 'arrow_right';
      break;
    default:
      break;
  }
  return array(
    'path' => drupal_get_path('module', 'vscc') . '/images/' . $vars['color'] . '_' . $image . '.png',
    'alt' => t($vars['element']),
    'title' => t($vars['element']),
  );
}