You are here

function potx_test_5_menu in Translation template extractor 7

Same name and namespace in other branches
  1. 8 tests/potx_test_5.module \potx_test_5_menu()
  2. 6.3 tests/potx_test_5.module \potx_test_5_menu()
  3. 7.3 tests/potx_test_5.module \potx_test_5_menu()
  4. 7.2 tests/potx_test_5.module \potx_test_5_menu()

Implementation of hook_menu()

File

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

Code

function potx_test_5_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'node/add/blog',
      'title' => t('Test menu item in 5'),
      'description' => t('This is a test menu item in 5'),
      'access' => user_access('access content'),
      'callback' => 'potx_test_5_page',
    );
    $items[] = array(
      'path' => 'test-empty-t',
      'title' => t(''),
    );
  }
  return $items;
}