function menu_test_title_callback
Same name in other branches
- 7.x modules/simpletest/tests/menu_test.module \menu_test_title_callback()
- 9 core/modules/system/tests/modules/menu_test/menu_test.module \menu_test_title_callback()
- 10 core/modules/system/tests/modules/menu_test/menu_test.module \menu_test_title_callback()
- 11.x core/modules/system/tests/modules/menu_test/menu_test.module \menu_test_title_callback()
Title callback: Concatenates the title and case number.
Parameters
string $title: Title string.
int $case_number: (optional) The current case number which it tests (defaults to 3).
Return value
string A string containing the title and case number.
See also
menu_test_menu()
File
-
core/
modules/ system/ tests/ modules/ menu_test/ menu_test.module, line 87
Code
function menu_test_title_callback($title, $case_number = 3) {
return t($title) . ' - Case ' . $case_number;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.