7 theme.inc theme_enable($theme_list)

Enables a given list of themes.

Parameters

$theme_list: An array of theme names.

18 calls to theme_enable()
AJAXFrameworkTestCase::testLazyLoadOverriddenCSS in modules/simpletest/tests/ajax.test
Tests that overridden CSS files are not added during lazy load.
BlockHiddenRegionTestCase::testBlockNotInHiddenRegion in modules/block/block.test
Tests that hidden regions do not inherit blocks when a theme is enabled.
BlockTestCase::testCustomBlock in modules/block/block.test
Test creating custom block, moving it to a specific region and then deleting it.
ColorTestCase::setUp in modules/color/color.test
Sets up a Drupal site for running functional and integration tests.
CommentInterfaceTest::testCommentLinks in modules/comment/comment.test
Tests comment links.

... See full list

5 string references to the theme hook from theme_enable()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

LocaleLanguageNegotiationInfoFunctionalTest::languageNegotiationUpdate in modules/locale/locale.test
Update language types/negotiation information.
module_enable in includes/module.inc
Enables or installs a given list of modules.
system_modules_submit in modules/system/system.admin.inc
Submit callback; handles modules form submission.
theme_system_modules_fieldset in modules/system/system.admin.inc
Returns HTML for the modules form.
_system_modules_build_row in modules/system/system.admin.inc
Build a table row for the system modules page.

File

includes/theme.inc, line 1603
The theme system, which controls the output of Drupal.

Code

function theme_enable($theme_list) {
  drupal_clear_css_cache();

  foreach ($theme_list as $key) {
    db_update('system')
      ->fields(array('status' => 1))
      ->condition('type', 'theme')
      ->condition('name', $key)
      ->execute();
  }

  list_themes(TRUE);
  menu_rebuild();
  drupal_theme_rebuild();

  // Invoke hook_themes_enabled() after the themes have been enabled.
  module_invoke_all('themes_enabled', $theme_list);
}