You are here

function dialog_admin_settings in Dialog 6

Administration settings form.

1 string reference to 'dialog_admin_settings'
dialog_menu in ./dialog.module
Implementation of hook_menu().

File

./dialog.admin.inc, line 11
Administration settings for Dialog API

Code

function dialog_admin_settings() {
  $form = array();
  $form['dialog_attributes'] = array(
    '#type' => 'fieldset',
    '#title' => t('Dialog default attributes'),
  );
  $form['dialog_attributes']['dialog_default_height'] = array(
    '#type' => 'textfield',
    '#title' => t('Height'),
    '#default_value' => variable_get('dialog_default_height', 'auto'),
    '#description' => t('The CSS value for dialog height'),
  );
  $form['dialog_attributes']['dialog_default_width'] = array(
    '#type' => 'textfield',
    '#title' => t('Width'),
    '#default_value' => variable_get('dialog_default_width', '600px'),
    '#description' => t('The CSS value for dialog width'),
  );
  return system_settings_form($form);
}