You are here

function pwa_webpush_block_configure in Progressive Web App 7.2

Implements hook_block_configure().

This hook declares configuration options for blocks provided by this module.

File

modules/pwa_webpush/pwa_webpush.module, line 376

Code

function pwa_webpush_block_configure($delta = '') {
  $form = [];
  if ($delta === 'pwa_webpush_register') {
    $form['pwa_webpush_block_register_label'] = [
      '#type' => 'textfield',
      '#title' => t('Label of the register button'),
      '#default_value' => variable_get('pwa_webpush_block_register_label', t('Enable notifications')),
    ];
  }
  return $form;
}