You are here

chr.admin.inc in cURL HTTP Request 6

Same filename and directory in other branches
  1. 7 chr.admin.inc

Admin settings

File

chr.admin.inc
View source
<?php

/**
 * @file
 * Admin settings
 */

/**
 * Form settings array
 */
function chr_admin_settings_form(&$form_state) {
  $form['#access'] = array(
    'administer chr',
  );
  $form['chr_debug'] = array(
    '#type' => 'checkbox',
    '#title' => t('Enable Debug Output'),
    '#description' => t('Display all HTTP requests/response objects via Devel.'),
    '#default_value' => variable_get('chr_debug', FALSE),
    '#access' => module_exists('devel'),
  );

  // @todo add proxy settings (see README)
  return system_settings_form($form);
}

Functions

Namesort descending Description
chr_admin_settings_form Form settings array