function theme_page_test_system_info_alter

Same name in other branches
  1. 9 core/modules/system/tests/modules/theme_page_test/theme_page_test.module \theme_page_test_system_info_alter()
  2. 8.9.x core/modules/system/tests/modules/theme_page_test/theme_page_test.module \theme_page_test_system_info_alter()
  3. 10 core/modules/system/tests/modules/theme_page_test/theme_page_test.module \theme_page_test_system_info_alter()

Implements hook_system_info_alter().

File

core/modules/system/tests/modules/theme_page_test/theme_page_test.module, line 15

Code

function theme_page_test_system_info_alter(&$info, Extension $file, $type) {
    // Make sure that all themes are visible on the Appearance form.
    if ($type === 'theme') {
        unset($info['hidden']);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.