function test_theme_theme_test_alter_alter

Same name in other branches
  1. 9 core/modules/system/tests/themes/test_theme/test_theme.theme \test_theme_theme_test_alter_alter()
  2. 8.9.x core/modules/system/tests/themes/test_theme/test_theme.theme \test_theme_theme_test_alter_alter()
  3. 10 core/modules/system/tests/themes/test_theme/test_theme.theme \test_theme_theme_test_alter_alter()
  4. 11.x core/modules/system/tests/themes/test_theme/test_theme.theme \test_theme_theme_test_alter_alter()

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').

File

modules/simpletest/tests/themes/test_theme/template.php, line 17

Code

function test_theme_theme_test_alter_alter(&$data) {
    $data = 'test_theme_theme_test_alter_alter was invoked';
}

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