You are here

function sbp_test_make_queried_page in Search by Page 7

Same name and namespace in other branches
  1. 6 tests/sbp_test.module \sbp_test_make_queried_page()

Page callback function for path 'sbp_test_queried_page'.

1 string reference to 'sbp_test_make_queried_page'
sbp_test_menu in tests/sbp_test.module
Implements hook_menu().

File

tests/sbp_test.module, line 327
Module file for Search by Page testing.

Code

function sbp_test_make_queried_page() {

  // Print out different text depending on the value of the query arg.
  $value = $_GET['a'];
  $text = $value == 3 ? t('three') : t('four');
  return '<p>' . $text . '</p>' . '<h2>' . t('Trees') . '</h2>' . '<ul>' . '<li>' . t('Walnut') . '</li>' . '<li>' . t('Hazelnut') . '</li>' . '</ul>';
}