You are here

function block_refresh_permission in Block Refresh 7

Same name and namespace in other branches
  1. 7.2 block_refresh.module \block_refresh_permission()

Implements hook_permission(). Add permission for accessing auto/manually refreshed block content DRUPAL 7 STATUS: WORKING!

File

./block_refresh.module, line 32

Code

function block_refresh_permission() {
  return array(
    BLOCK_REFRESH_ACCESS_CONTENT_PERMISSION => array(
      'title' => t('Access block refresh content'),
      'description' => t('Selected roles will see content refreshed in enabled blocks.'),
    ),
  );
}