function theme_views_field_tooltip in Views Field Tooltip 7
Theme function for `views_field_tooltip`.
2 theme calls to theme_views_field_tooltip()
- views_field_tooltip__inject_field_tooltip in ./
views_field_tooltip.module - Inject settings for a field tooltip.
- views_field_tooltip__inject_tooltip in ./
views_field_tooltip.module - Inject settings for a tooltip.
File
- ./
views_field_tooltip.module, line 748 - Shows tooltips on Views fields and labels.
Code
function theme_views_field_tooltip(&$variables) {
$icon = empty($variables['icon']) ? drupal_get_path('module', 'views_field_tooltip') . '/images/help.png' : $variables['icon'];
$attributes = array(
'class' => $variables['class'],
);
return theme('image', array(
'path' => $icon,
'attributes' => $attributes,
));
}