function i18n_block_translate_tab_access in Internationalization 7
Menu access callback function.
Only let blocks translated which are configured to be translatable.
1 string reference to 'i18n_block_translate_tab_access'
- i18n_block_menu in i18n_block/
i18n_block.module - Implements hook_menu().
File
- i18n_block/
i18n_block.module, line 71 - Internationalization (i18n) submodule: Multilingual meta-blocks
Code
function i18n_block_translate_tab_access($module, $delta) {
$block = block_load($module, $delta);
return (user_access('translate interface') || user_access('translate blocks')) && $block && isset($block->i18n_mode) && $block->i18n_mode == I18N_MODE_LOCALIZE;
}