You are here

function ctools_qtip_content_type_render in qTip (Stylish jQuery Tooltips) 7.2

Check if there are errors and if any display message.

1 string reference to 'ctools_qtip_content_type_render'
qtip.inc in plugins/content_types/qtip.inc

File

plugins/content_types/qtip.inc, line 34

Code

function ctools_qtip_content_type_render($subtype, $conf, $panel_args, &$contexts) {
  $block = new stdClass();
  $block->module = t('qtip');
  $block->title = '';
  $block->delta = 'qtip';
  if (!empty($contexts) && !empty($conf['substitute'])) {
    $conf['text'] = ctools_context_keyword_substitute($conf['text'], array(), $contexts);
    $conf['tooltip_title'] = ctools_context_keyword_substitute($conf['tooltip_title'], array(), $contexts);
    $conf['tooltip_text'] = ctools_context_keyword_substitute($conf['tooltip_text'], array(), $contexts);
  }
  $theme_variables = array(
    'content' => $conf['text'],
    'title' => $conf['tooltip_title'],
    'tooltip' => $conf['tooltip_text'],
    'instance' => $conf['instance'],
  );
  $block->content = theme('qtip', $theme_variables);
  return $block;
}