You are here

function _antispam_get_block_fields in AntiSpam 7

Returns the array of fields for AntiSpam block configuration. Called from hook_block_view(), hook_block_save() and hook_block_configure().

3 calls to _antispam_get_block_fields()
antispam_block_configure in ./antispam.module
Implements hook_block_configure().
antispam_block_save in ./antispam.module
Implements hook_block_save().
antispam_block_view in ./antispam.module
Implements hook_block_view().

File

./antispam.module, line 1627
Primary hook implementations for the Antispam module.

Code

function _antispam_get_block_fields() {
  return array(
    'type' => array(
      '#type' => 'radios',
      '#title' => t('Display counter as'),
      '#options' => array(
        'image' => t('Image'),
        'text' => t('Text'),
      ),
      '#default_value' => 'image',
    ),
    'sitename' => array(
      '#type' => 'radios',
      '#title' => t('Show site name'),
      '#options' => array(
        '1' => t('Enabled'),
        '0' => t('Disabled'),
      ),
      '#default_value' => '1',
    ),
    'newwin' => array(
      '#type' => 'radios',
      '#title' => t('Open AntiSpam link in new window'),
      '#options' => array(
        '1' => t('Enabled'),
        '0' => t('Disabled'),
      ),
      '#default_value' => '1',
    ),
  );
}