[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/dialog/ -> dialog.admin.inc (source)

   1  <?php
   2  // $Id: dialog.admin.inc,v 1.1.2.2 2011/01/31 21:03:40 drewish Exp $
   3  
   4  /**
   5   * @file
   6   * Administration settings for Dialog API
   7   */
   8  
   9  /**
  10   * Administration settings form.
  11   */
  12  function dialog_admin_settings() {
  13    $form = array();
  14  
  15    $form['dialog_attributes'] = array(
  16      '#type'  => 'fieldset',
  17      '#title' => t('Dialog default attributes'),
  18    );
  19  
  20    $form['dialog_attributes']['dialog_default_height'] = array(
  21      '#type'          => 'textfield',
  22      '#title'         => t('Height'),
  23      '#default_value' => variable_get('dialog_default_height', 'auto'),
  24      '#description'   => t('The CSS value for dialog height'),
  25    );
  26  
  27    $form['dialog_attributes']['dialog_default_width'] = array(
  28      '#type'          => 'textfield',
  29      '#title'         => t('Width'),
  30      '#default_value' => variable_get('dialog_default_width', '600px'),
  31      '#description'   => t('The CSS value for dialog width'),
  32    );
  33  
  34    return system_settings_form($form);
  35  }


Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7