You are here

function sweaverThemeSettings::enableSweaverData in Sweaver 7

Same name and namespace in other branches
  1. 6 tests/sweaver.themesettings.test \sweaverThemeSettings::enableSweaverData()

Enable sweaver plugins.

1 call to sweaverThemeSettings::enableSweaverData()
sweaverThemeSettings::buildStyleConfiguration in tests/sweaver.themesettings.test
Build form, form_state values and copy files when necessary.

File

tests/sweaver.themesettings.test, line 64
Advanced tests for sweaver editor + theme settings.

Class

sweaverThemeSettings
@file Advanced tests for sweaver editor + theme settings.

Code

function enableSweaverData() {
  $path = $this
    ->sweaver_public_path() . '/sweaver';
  if (!file_exists($path)) {
    $return = mkdir($path);
    $this
      ->assertTrue($return, 'File directory has been created.');
  }
  variable_set('sweaver_styles_delete_tab', TRUE);
  variable_set('sweaver_plugin_status_sweaver_plugin_themesettings', TRUE);
  $this
    ->refreshVariables();
}