function theme_test_theme
Same name in other branches
- 9 core/modules/system/tests/modules/theme_test/theme_test.module \theme_test_theme()
- 8.9.x core/modules/system/tests/modules/theme_test/theme_test.module \theme_test_theme()
- 10 core/modules/system/tests/modules/theme_test/theme_test.module \theme_test_theme()
- 11.x core/modules/system/tests/modules/theme_test/theme_test.module \theme_test_theme()
Implements hook_theme().
File
-
modules/
simpletest/ tests/ theme_test.module, line 6
Code
function theme_test_theme($existing, $type, $theme, $path) {
$items['theme_test'] = array(
'file' => 'theme_test.inc',
'variables' => array(
'foo' => '',
),
);
$items['theme_test_template_test'] = array(
'template' => 'theme_test.template_test',
);
$items['theme_test_template_test_2'] = array(
'template' => 'theme_test.template_test',
);
$items['theme_test_foo'] = array(
'variables' => array(
'foo' => NULL,
),
);
return $items;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.