You are here

function page_url_qr_code_block_block_configure in Page URL QR Code Block 7

File

./page_url_qr_code_block.module, line 31
Contains module logic for page_url_qr_code_block.

Code

function page_url_qr_code_block_block_configure($delta = '') {

  // This example comes from node.module.
  $form = array();
  if ($delta == 'page_url_qr_code_block') {
    $form['page_url_qr_code_caption'] = array(
      '#type' => 'textfield',
      '#title' => t('Caption'),
      '#description' => t('Will display under the QR Code'),
      '#default_value' => variable_get('page_url_qr_code_caption', 'This page URL'),
    );
    $form['page_url_qr_code_alt'] = array(
      '#type' => 'textfield',
      '#title' => t('Alt Text'),
      '#default_value' => variable_get('page_url_qr_code_alt', 'QR code for this page URL'),
    );
    $form['page_url_qr_code_width_height'] = array(
      '#type' => 'textfield',
      '#title' => t('QR Code Width & Height'),
      '#description' => t('Width & Height will be same. i.e. 150'),
      '#default_value' => variable_get('page_url_qr_code_width_height', 150),
    );
    $form['page_url_qr_code_api'] = array(
      '#type' => 'radios',
      '#title' => t('Select API'),
      '#description' => t('Google is recommended except where Google is restricted'),
      '#options' => array(
        'google' => 'Google API (recommended)',
        'liantu' => 'Liantu API',
      ),
      '#default_value' => variable_get('page_url_qr_code_api', 'google'),
    );
  }
  return $form;
}