First commit
This commit is contained in:
commit
c6e2478c40
13918 changed files with 2303184 additions and 0 deletions
19
modules/simpletest/tests/themes/test_theme/template.php
Normal file
19
modules/simpletest/tests/themes/test_theme/template.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Tests a theme overriding a suggestion of a base theme hook.
|
||||
*/
|
||||
function test_theme_theme_test__suggestion($variables) {
|
||||
return 'Theme hook implementor=test_theme_theme_test__suggestion(). Foo=' . $variables['foo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests a theme implementing an alter hook.
|
||||
*
|
||||
* The confusing function name here is due to this being an implementation of
|
||||
* the alter hook invoked when the 'theme_test' module calls
|
||||
* drupal_alter('theme_test_alter').
|
||||
*/
|
||||
function test_theme_theme_test_alter_alter(&$data) {
|
||||
$data = 'test_theme_theme_test_alter_alter was invoked';
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
<!-- Output for Theme Debug Markup test -->
|
||||
Node Content Dummy
|
24
modules/simpletest/tests/themes/test_theme/test_theme.info
Normal file
24
modules/simpletest/tests/themes/test_theme/test_theme.info
Normal file
|
@ -0,0 +1,24 @@
|
|||
name = Test theme
|
||||
description = Theme for testing the theme system
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Normally, themes may list CSS files like this, and if they exist in the theme
|
||||
; folder, then they get added to the page. If they have the same file name as a
|
||||
; module CSS file, then the theme's version overrides the module's version, so
|
||||
; that the module's version is not added to the page. Additionally, a theme may
|
||||
; have an entry like this one, without having the corresponding CSS file in the
|
||||
; theme's folder, and in this case, it just stops the module's version from
|
||||
; being loaded, and does not replace it with an alternate version. We have this
|
||||
; here in order for a test to ensure that this correctly prevents the module
|
||||
; version from being loaded, and that errors aren't caused by the lack of this
|
||||
; file within the theme folder.
|
||||
stylesheets[all][] = system.base.css
|
||||
|
||||
settings[theme_test_setting] = default value
|
||||
|
||||
; Information added by Drupal.org packaging script on 2017-06-21
|
||||
version = "7.56"
|
||||
project = "drupal"
|
||||
datestamp = "1498069849"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue