You are here

function qtip_panels_panels_pane_prerender in qTip (Stylish jQuery Tooltips) 7.2

Implements hook_panels_pane_prerender().

File

modules/qtip_panels/qtip_panels.module, line 73
Qtip panels primary module file.

Code

function qtip_panels_panels_pane_prerender($pane) {
  if (isset($pane->configuration['qtip']['qtip_title']) && $pane->configuration['qtip']['qtip_title'] == 1) {
    $qtip_help_image = theme('image', array(
      'path' => base_path() . 'misc/help.png',
    ));
    $qtip = theme('qtip', array(
      'content' => $qtip_help_image,
      'instance' => $pane->configuration['qtip']['instance'],
      'tooltip' => $pane->configuration['qtip']['custom_text'],
    ));
    $pane->configuration['override_title_text'] .= $qtip;
  }
}