function qtip_export_form in qTip (Stylish jQuery Tooltips) 7.2
Export form for qtip.
1 string reference to 'qtip_export_form'
- qtip_menu in ./
qtip.module - Implements hook_menu().
File
- includes/
forms/ qtip.admin.inc, line 478 - Administrative functions for the qTip module.
Code
function qtip_export_form($form, &$form_state, $qt) {
ctools_include('export');
// Generate export code
$code = ctools_export_object('qtip', $qt, '');
// Create form
$form = array();
$form['export'] = array(
'#type' => 'textarea',
'#default_value' => $code,
'#rows' => substr_count($code, "\n") + 1,
'#resizable' => FALSE,
'#description' => t('Place this code in your module\'s implementation of <code>hook_qtip_default_qtips()</code> to provide it as a default qtip.'),
);
return $form;
}