function omega_tools_subtheme_wizard_finalize_form in Omega Tools 7.3
@todo
1 string reference to 'omega_tools_subtheme_wizard_finalize_form'
- omega_tools_subtheme_wizard in includes/
omega_tools.wizard.inc - @todo
File
- includes/
omega_tools.wizard.inc, line 145
Code
function omega_tools_subtheme_wizard_finalize_form($form, &$form_state) {
$subtheme =& $form_state['subtheme'];
$form['finalize'] = array(
'#type' => 'fieldset',
'#title' => t('Finalize'),
);
$form['finalize']['description'] = array(
'#type' => 'item',
'#markup' => t('This is the final step for configuring your subtheme. You are now able to alter the final result by changing the <em>Advanced configuration</em>.'),
);
$form['finalize']['enable'] = array(
'#type' => 'checkbox',
'#title' => t('Enabled'),
'#description' => t('Decide wether or not this theme should be enabled.'),
'#default_value' => $subtheme->status,
'#access' => $subtheme->automated,
);
$form['finalize']['default'] = array(
'#type' => 'checkbox',
'#title' => t('Default theme'),
'#description' => t('Decide wether or not you want this theme to be your default theme.'),
'#default_value' => $subtheme->default,
'#access' => $subtheme->automated,
'#states' => array(
'visible' => array(
':input[name="enable"]' => array(
'checked' => TRUE,
),
),
),
);
$form['finalize']['advanced'] = array(
'#type' => 'fieldset',
'#title' => t('Advanced configuration'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['finalize']['advanced']['manipulate'] = array(
'#type' => 'checkbox',
'#title' => t('Manipulate the content of %file', array(
'%file' => $subtheme->machine_name . '.info',
)),
'#description' => t('After enabling this option you are able to edit the textarea below.'),
'#default_value' => FALSE,
);
$form['finalize']['advanced']['info'] = array(
'#type' => 'textarea',
'#title' => t('Content of %file', array(
'%file' => $subtheme->machine_name . '.info',
)),
'#description' => t('Only change the content of this textarea if you know what you are doing.'),
'#default_value' => omega_tools_build_info_file($subtheme->info),
'#rows' => 20,
'#states' => array(
'enabled' => array(
':input[name="manipulate"]' => array(
'checked' => TRUE,
),
),
),
);
unset($form['buttons']['next']);
return $form;
}