You are here

function _twitter_block_themes_access in Twitter Block 7.2

Same name and namespace in other branches
  1. 7 twitter_block.module \_twitter_block_themes_access()

Menu item access callback - only admin or enabled themes can be accessed.

1 string reference to '_twitter_block_themes_access'
twitter_block_menu in ./twitter_block.module
Implements hook_menu().

File

./twitter_block.module, line 103
A module to provide simple Twitter blocks using the Twitter Search API.

Code

function _twitter_block_themes_access($theme) {
  return user_access('administer blocks') && drupal_theme_access($theme);
}