function _block_themes_access
Same name and namespace in other branches
- 6.x drupal-6.x/modules/block/block.module \_block_themes_access()
Menu item access callback - only admin or enabled themes can be accessed.
3 string references to '_block_themes_access'
- block_menu in drupal-7.x/
modules/ block/ block.module - Implements hook_menu().
- drupal-6.bare.database.php in drupal-7.x/
modules/ simpletest/ tests/ upgrade/ drupal-6.bare.database.php - Bare installation of Drupal 6.17, for test purposes.
- drupal-6.filled.database.php in drupal-7.x/
modules/ simpletest/ tests/ upgrade/ drupal-6.filled.database.php - Filled installation of Drupal 6.17, for test purposes.
Archivo
- drupal-7.x/
modules/ block/ block.module, line 182 - Controls the visual building blocks a page is constructed with.
Código
function _block_themes_access($theme) {
return user_access('administer blocks') && drupal_theme_access($theme);
}