You are here

function pwa_block_info in Progressive Web App 7.2

Implements hook_block_info().

File

./pwa.module, line 632

Code

function pwa_block_info() {
  $blocks = [];
  $blocks['pwa_register'] = [
    'info' => t('PWA register serviceworker'),
    'weight' => 100,
    // Add the block to enable registration of the serviceworker by default.
    'status' => 1,
    'region' => 'footer',
    'visibility' => BLOCK_VISIBILITY_NOTLISTED,
    'pages' => variable_get('pwa_serviceworker_cache_exclude', PWA_SW_CACHE_EXCLUDE),
  ];
  return $blocks;
}