function _block_themes_access in Block Cache Alter 6
Same name in this branch
- 6 patches/block_with_node_grants.module \_block_themes_access()
- 6 patches/block_no_node_grants.module \_block_themes_access()
Menu item access callback - only admin or enabled themes can be accessed
2 string references to '_block_themes_access'
- block_menu in patches/
block_with_node_grants.module - Implementation of hook_menu().
- block_menu in patches/
block_no_node_grants.module - Implementation of hook_menu().
File
- patches/
block_with_node_grants.module, line 180 - Controls the boxes that are displayed around the main content.
Code
function _block_themes_access($theme) {
return user_access('administer blocks') && ($theme->status || $theme->name == variable_get('admin_theme', '0'));
}