function i18n_access_menu_alter in Translation Access 6
Same name and namespace in other branches
- 7 i18n_access.module \i18n_access_menu_alter()
Implementation of hook_menu_alter().
File
- ./
i18n_access.module, line 169 - file_description
Code
function i18n_access_menu_alter(&$callbacks) {
// Use _i18n_access_node_access() instead of node_access().
$callbacks['node/%node/edit']['access callback'] = '_i18n_access_node_access';
// Replace the translation overview page since we can't hook it.
$callbacks['node/%node/translate']['page callback'] = 'i18n_access_translation_node_overview';
}