Same name in other branches
  1. 7.x-2.x includes/admin.inc \quicktabs_export_form()
  2. 8.x-1.x quicktabs.admin.inc \quicktabs_export_form()

Export form for quicktabs.

1 string reference to 'quicktabs_export_form'
quicktabs_menu dans ./quicktabs.module
Implements hook_menu().

Fichier

./quicktabs.admin.inc, line 528

Code

function quicktabs_export_form($form, &$form_state, $qt) {
    ctools_include('export');
    // Generate export code
    $code = ctools_export_object('quicktabs', $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_quicktabs_default_quicktabs()</code> to provide it as a default quicktab.'),
    );
    $form['done'] = array(
        '#type' => 'submit',
        '#value' => t('Done'),
    );
    $form['#redirect'] = 'admin/structure/quicktabs';
    return $form;
}