function _block_themes_access
7.x block.module | _block_themes_access($theme) |
6.x block.module | _block_themes_access($theme) |
Menu item access callback - only admin or enabled themes can be accessed.
1 string reference to '_block_themes_access'
- block_menu in drupal-7.x/
modules/ block/ block.module - Implements hook_menu().
File
- drupal-7.x/
modules/ block/ block.module, line 182 - Controls the visual building blocks a page is constructed with.
Code
function _block_themes_access($theme) {
return user_access('administer blocks') && drupal_theme_access($theme);
}