You are here

function potx_test_6_menu_alter in Translation template extractor 8

Same name and namespace in other branches
  1. 6.3 tests/potx_test_6.module \potx_test_6_menu_alter()
  2. 7.3 tests/potx_test_6.module \potx_test_6_menu_alter()
  3. 7 tests/potx_test_6.module \potx_test_6_menu_alter()
  4. 7.2 tests/potx_test_6.module \potx_test_6_menu_alter()

Implementation of hook_menu_alter()

File

tests/potx_test_6.module, line 28
File used purely to test the parser in potx.

Code

function potx_test_6_menu_alter(&$items) {
  $items['translate/test-empty']['description'] = 'Test menu item description altered (1)';
  $items['translate/test-empty'] = array_merge($items['translate/test-empty'], array(
    'title' => 'Test menu item title altered',
    'description' => 'Test menu item description altered (2)',
  ));
}