function _block_themes_access
Same name and namespace in other branches
- 7.x drupal-7.x/modules/block/block.module \_block_themes_access()
Menu item access callback - only admin or enabled themes can be accessed
1 string reference to '_block_themes_access'
- block_menu in drupal-6.x/
modules/ block/ block.module - Implementation of hook_menu().
Archivo
- drupal-6.x/
modules/ block/ block.module, line 180 - Controls the boxes that are displayed around the main content.
Código
function _block_themes_access($theme) {
return user_access('administer blocks') && ($theme->status || $theme->name == variable_get('admin_theme', '0'));
}