mediamosa_configuration_debug_mediamosa_configuration_collect

Versions
mediamosa-21
mediamosa_configuration_debug_mediamosa_configuration_collect()

Implements the hook_mediamosa_settings_collect()

Code

sites/all/modules/mediamosa/configuration/debug/mediamosa_configuration_debug.module, line 34

<?php
function mediamosa_configuration_debug_mediamosa_configuration_collect() {
  $form['settings_debug'] = array(
    '#type' => 'fieldset',
    '#title' => t('Debug settings'),
    '#collapsible' => TRUE,
  );

  $form['settings_debug']['mediamosa_debug_level'] = array(
    '#type' => 'select',
    '#title' => t('Extra debug logging.'),
    '#description' => t('Set this flag to log more information when possible.'),
    '#required' => FALSE,
    '#options' => array(
      0 => t('Off'),
      5 => t('Normal'),
      10 => t('High'),
    ),
    '#default_value' => variable_get('mediamosa_debug_level', 0),// Set empty, so its filled.
  );

  $form['settings_debug']['mediamosa_debug_ip_whitelist'] = array(
    '#type' => 'textfield',
    '#title' => t('Whitelisting of IPs for REST.'),
    '#description' => t('Set one or more IPs for enabling authorization simulation on REST. This allows you to do queries on the REST interface with own app_id parameter without needing to indentify yourself. Should not be used actively on production, only for testing and debugging purposes. You can add more than one IP by separating with a |. You current IP number is; %ip_client.', array('%ip_client' => $_SERVER['REMOTE_ADDR'])),
    '#required' => FALSE,
    '#default_value' => '',// Set empty, so its filled.
  );

  return $form;
}
?>