function menu_test_title_callback

Same name in other branches
  1. 7.x modules/simpletest/tests/menu_test.module \menu_test_title_callback()
  2. 9 core/modules/system/tests/modules/menu_test/menu_test.module \menu_test_title_callback()
  3. 8.9.x 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()

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.