You are here

function _commerce_kickstart_enable_theme in Commerce Kickstart 7.2

BatchAPI callback.

See also

commerce_kickstart_install_additional_modules()

1 string reference to '_commerce_kickstart_enable_theme'
commerce_kickstart_install_additional_modules in ./commerce_kickstart.install
Task callback: uses Batch API to import modules based on user selection. Installs all demo store modules if requested, or any modules providing additional functionality to the base install.

File

./commerce_kickstart.install_callbacks.inc, line 13
Contains Batch API callbacks used during installation.

Code

function _commerce_kickstart_enable_theme($theme, &$context) {
  theme_enable(array(
    $theme,
  ));
  variable_set('theme_default', $theme);
  $context['message'] = st('Installed the default theme.');
}