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.
Remove usage and the function drupal_theme_access().
drupal_theme_access() is still there in line in system.module
core/includes/theme.inc:88:function drupal_theme_access($theme) {
core/modules/system/src/Tests/Theme/ThemeTest.php:211: // Check if drupal_theme_access() retrieves enabled themes properly from
core/modules/system/src/Tests/Theme/ThemeTest.php:213: $this->assertTrue(drupal_theme_access('test_theme'), 'Installed theme detected');
core/modules/system/src/Tests/Theme/ThemeTest.php:215: $this->assertTrue(drupal_theme_access('test_theme'), 'Enabled theme detected');
core/modules/system/system.module:321: return \Drupal::currentUser()->hasPermission('administer themes') && drupal_theme_access($theme);
bash-3.2$
This issue is to remove the usage of the function and the function.
Comment | File | Size | Author |
---|---|---|---|
#3 | 2443817-drupal_theme_access-3.patch | 2.65 KB | andypost |
#3 | interdiff.txt | 1.76 KB | andypost |
#1 | remove-use-function-drupal_theme_access-2443817-1.patch | 1.53 KB | a_thakur |
Comments
Comment #1
a_thakur CreditAttribution: a_thakur commentedPlease find the patch which removes the usage of the function and the function.
Comment #3
andypostFix test, also removed unused
_system_themes_access()
Comment #4
a_thakur CreditAttribution: a_thakur commentedLooks good, changing to RTBC.
Also link added to relevant change record: https://www.drupal.org/node/2150863
Comment #5
catchCommitted/pushed to 8.0.x, thanks!