You are here

function potx_test_7_menu_alter in Translation template extractor 8

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

Implementation of hook_menu_alter()

File

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

Code

function potx_test_7_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)',
  ));
}