function menu_test_title_callback

Same name in other branches
  1. 9 core/modules/system/tests/modules/menu_test/menu_test.module \menu_test_title_callback()
  2. 8.9.x core/modules/system/tests/modules/menu_test/menu_test.module \menu_test_title_callback()
  3. 10 core/modules/system/tests/modules/menu_test/menu_test.module \menu_test_title_callback()
  4. 11.x core/modules/system/tests/modules/menu_test/menu_test.module \menu_test_title_callback()

Concatenates a string, by using the t() function and a case number.

Parameters

$title: Title string.

$case_number: The current case number which is tests (defaults to 3).

1 string reference to 'menu_test_title_callback'
menu_test_menu in modules/simpletest/tests/menu_test.module
Implements hook_menu().

File

modules/simpletest/tests/menu_test.module, line 561

Code

function menu_test_title_callback($title, $case_no = 3) {
    return t($title) . ' - Case ' . $case_no;
}

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