function qtip_export in qTip (Stylish jQuery Tooltips) 7.2
Export the specified qtip instance with translatable strings.
1 string reference to 'qtip_export'
- qtip_schema in ./
qtip.install - Implements hook_schema().
File
- ./
qtip.module, line 566
Code
function qtip_export($qt, $indent = '') {
$output = ctools_export_object('qtip', $qt, $indent);
$translatables = array();
if (!empty($qt->name)) {
$translatables[] = $qt->name;
}
$translatables = array_filter(array_unique($translatables));
if (!empty($translatables)) {
$output .= "\n";
$output .= "{$indent}// Translatables\n";
$output .= "{$indent}// Included for use with string extractors like potx.\n";
sort($translatables);
foreach ($translatables as $string) {
$output .= "{$indent}t(" . ctools_var_export($string) . ");\n";
}
$output .= "\n";
}
return $output;
}