function potx_test_6_menu_alter in Translation template extractor 7
Same name and namespace in other branches
- 8 tests/potx_test_6.module \potx_test_6_menu_alter()
- 6.3 tests/potx_test_6.module \potx_test_6_menu_alter()
- 7.3 tests/potx_test_6.module \potx_test_6_menu_alter()
- 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)',
));
}