You are here

function omega_tools_subtheme_wizard_finished_form in Omega Tools 7.3

@todo

1 string reference to 'omega_tools_subtheme_wizard_finished_form'
omega_tools_subtheme_wizard in includes/omega_tools.wizard.inc
@todo

File

includes/omega_tools.wizard.inc, line 226

Code

function omega_tools_subtheme_wizard_finished_form($form, &$form_state) {
  $subtheme =& $form_state['subtheme'];
  drupal_set_title(t('Your subtheme is ready for download'));
  unset($form['ctools_trail'], $form['buttons']['previous'], $form['buttons']['return']);
  $form['buttons']['cancel']['#value'] = t('Finish');
  $form['buttons']['next']['#value'] = t('Download');
  $form['message']['#markup'] = t('Please press <strong>Download</strong> to save the theme to your local hard disk. After the download has completed you can either <strong>upload the contained folder manually</strong> or install it by using the <strong>Drupal Update Manager</strong>.');
  $form['details'] = array(
    '#type' => 'fieldset',
    '#title' => t('Details'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
  );
  $form['details']['info'] = array(
    '#type' => 'textarea',
    '#title' => t('Content of the .info file'),
    '#default_value' => omega_tools_build_info_file($subtheme->info),
    '#disabled' => TRUE,
    '#rows' => 10,
  );
  return $form;
}