You are here

function omega_tools_subtheme_wizard in Omega Tools 7.3

@todo

1 string reference to 'omega_tools_subtheme_wizard'
omega_tools_menu in ./omega_tools.module
Implements hook_menu().

File

includes/omega_tools.wizard.inc, line 6

Code

function omega_tools_subtheme_wizard($subtheme, $step = NULL) {
  ctools_include('wizard');
  $info = array(
    'id' => 'omega_tools_subtheme_wizard',
    'path' => 'admin/appearance/omega-tools/edit/' . $subtheme->machine_name . '/%step',
    'free trail' => TRUE,
    'show trail' => TRUE,
    'show back' => TRUE,
    'show cancel' => TRUE,
    'show return' => FALSE,
    'next text' => t('Continue'),
    'next callback' => 'omega_tools_subtheme_wizard_next',
    'finish callback' => 'omega_tools_subtheme_wizard_finish',
    'cancel callback' => 'omega_tools_subtheme_wizard_cancel',
    'finish text' => t('Finish'),
    'order' => array(
      'info' => t('Step 1: Theme information'),
      'finalize' => t('Step 2: Finalize'),
    ),
    'forms' => array(
      'info' => array(
        'form id' => 'omega_tools_subtheme_wizard_info_form',
      ),
      'finalize' => array(
        'form id' => 'omega_tools_subtheme_wizard_finalize_form',
      ),
      'finished' => array(
        'form id' => 'omega_tools_subtheme_wizard_finished_form',
      ),
    ),
  );
  $form_state = array(
    'subtheme' => $subtheme,
  );
  return ctools_wizard_multistep_form($info, $step, $form_state);
}