function _block_themes_access

Access callback: Only enabled themes can be accessed.

Path:

  • admin/structure/block/list/% (for each theme)
  • admin/structure/block/demo/% (for each theme)

Parameters

$theme: Either the name of a theme or a full theme object.

See also

block_menu()

1 call to _block_themes_access()
BlockPluginUI::access in drupal/core/modules/block/lib/Drupal/block/Plugin/PluginUI/BlockPluginUI.php
Overrides \Drupal\system\Plugin\PluginUIBase::access().
1 string reference to '_block_themes_access'
block_menu in drupal/core/modules/block/block.module
Implements hook_menu().

File

drupal/core/modules/block/block.module, line 197
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);
}