You are here

function visually_impaired_module_block_configure in Visually Impaired Support (module) 7

Implements hook_block_configure().

File

./visually_impaired_module.module, line 46
Provides version for visually impaired people.

Code

function visually_impaired_module_block_configure($delta = '') {
  $form = [];
  $active = [
    0 => t('Text'),
    1 => t('Image'),
  ];
  if ($delta == 'visually_impaired_block1' || $delta == 'visually_impaired_block2') {
    $form['block_style'] = [
      '#type' => 'radios',
      '#title' => t('Block style'),
      '#required' => TRUE,
      '#options' => $active,
      '#default_value' => variable_get($delta . '_block_style', 1),
    ];
  }
  return $form;
}