Advertisement
Guest User

Untitled

a guest
Jan 30th, 2015
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.52 KB | None | 0 0
  1. / build Tooltip text
  2.       $tooltip = '<h3>' . $variables['element']['#object']->title . '</h3>';
  3.       $summary_field = $variables['element']['#object']->field_summary;
  4.       if ($summary = $summary_field[LANGUAGE_NONE][0]['safe_value']) {
  5.         $tooltip .= '<p>' . $summary . '</p>';
  6.       }
  7.  
  8.       foreach($variables['items'] as $key => $item) {
  9.         $variables['items'][ $key ]['#prefix'] = '<span class="jquery-ui-tooltip" title = "' . $tooltip . '">';
  10.         $variables['items'][ $key ]['#suffix'] = '<span>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement