You are here

function potx_test_7_menu in Translation template extractor 6.3

Same name and namespace in other branches
  1. 8 tests/potx_test_7.module \potx_test_7_menu()
  2. 7 tests/potx_test_7.module \potx_test_7_menu()
  3. 7.2 tests/potx_test_7.module \potx_test_7_menu()

Implementation of hook_menu()

File

tests/potx_test_7.module, line 11
File used purely to test the parser in potx.

Code

function potx_test_7_menu() {
  $items = array();
  $items['translate/test'] = array(
    'title' => 'Test menu item',
    'description' => 'This is a test menu item',
    'page callback' => 'potx_test_7_page',
  );
  $items['translate/test-empty'] = array(
    'title' => '',
  );
  $items['translate/test-empty']['description'] = 'Test menu item description';
  return $items;
}