ctools_export_form
Drupal 7 ctools_export_form($form, &$form_state, $code, $title = '')
Provide a form for displaying an export.
This is a simple form that should be invoked like this:
$output = drupal_get_form('ctools_export_form', $code, $object_title);
1 call to ctools_export_form()
2 string references to 'ctools_export_form'
File
- sites/
all/ modules/ ctools/ includes/ export.inc, line 1111 - Contains code to make it easier to have exportable objects.
Code
function ctools_export_form($form, &$form_state, $code, $title = '') {
$lines = substr_count($code, "\n");
$form['code'] = array(
'#type' => 'textarea',
'#title' => $title,
'#default_value' => $code,
'#rows' => $lines,
);
return $form;
}

