You are here

function _omega_tools_theme_reset_form in Omega Tools 7.2

Same name and namespace in other branches
  1. 7 omega_tools.module \_omega_tools_theme_reset_form()

Create a form to reset the theme settings in the database

1 string reference to '_omega_tools_theme_reset_form'
_omega_tools_theme_reset in ./omega_tools.module
Callback for generating the reset form for theme settings

File

./omega_tools.module, line 138

Code

function _omega_tools_theme_reset_form($form, &$form_state, $theme) {
  $form = array();
  $form['theme_reset'] = array(
    '#markup' => '<p><strong>WARNING:</strong> You will be fully removing the theme settings stored in the database for this theme (' . $theme . '). This will revert to whatever information is set in the .info file, and erase any customizations made after installation of this theme.</p>',
  );
  $form['theme'] = array(
    '#type' => 'hidden',
    '#value' => $theme,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Revert Theme Settings'),
  );
  $form['#submit'][] = '_omega_tools_theme_reset_submit';

  //krumo($form);
  return $form;
}