Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Follow-up to #2764045: Adding .tpl.php file in theme templates makes test themes visible on the appearance admin form
This configuration is rarely needed and should be commented out for example purposes only. It's use-case seems to be focused towards core developers and not general environment for drupal site developers and site builders.
/**
* Allow test modules and themes to be installed.
*
* Drupal ignores test modules and themes by default for performance reasons.
* During development it can be useful to install test extensions for debugging
* purposes.
*/
$settings['extension_discovery_scan_tests'] = TRUE;
Comment | File | Size | Author |
---|---|---|---|
#2 | 2805449-1-comment-out-extension_discovery_scan_tests.patch | 456 bytes | joelpittet |
Comments
Comment #2
joelpittetHere's the one line quickfix.
Comment #3
cilefen CreditAttribution: cilefen commentedI agree.
Comment #6
joelpittetComment #7
sorabh.v6I can confirm that
$settings['extension_discovery_scan_tests'] = TRUE;
is commented in the patch and patch applies successfully.Thanks
Comment #8
Gábor HojtsyHm, tried to commit this, but the committer git hooks get hung up on an existing coding style violation:
I would not sidestep that but also it is not really a problem with this issue... Will consult other committers.
Comment #11
Gábor HojtsyDiscussed with @xjm, we don't need to block this issue on the other fix. I committed sidestepping the validation issue for now. :) Thanks!
Opened #2915673: Ignore coding standards in sites/* PHP files as they are for configuration and not real code for the code style problem.