| 1 |
<?php
|
| 2 |
// $Id$
|
| 3 |
|
| 4 |
/**
|
| 5 |
* @file
|
| 6 |
* Admin settings for the Zanox Web Services API module.
|
| 7 |
*/
|
| 8 |
|
| 9 |
/**
|
| 10 |
* Admin settings form for the Zanox Web Services API module
|
| 11 |
*/
|
| 12 |
function zws_admin_settings() {
|
| 13 |
$form = array();
|
| 14 |
$form['zws'] = array(
|
| 15 |
'#type' => 'fieldset',
|
| 16 |
'#title' => t('Zanox Web Services API settings')
|
| 17 |
);
|
| 18 |
|
| 19 |
$form['zws']['zws_application_id'] = array(
|
| 20 |
'#type' => 'textfield',
|
| 21 |
'#title' => t('Application ID'),
|
| 22 |
'#default_value' => variable_get('zws_application_id', ''),
|
| 23 |
'#required' => TRUE,
|
| 24 |
'#size' => 30,
|
| 25 |
'#maxlength' => 128,
|
| 26 |
'#description' => t('Enter your application ID to access the Zanox Web Services API.')
|
| 27 |
);
|
| 28 |
|
| 29 |
$form['zws']['zws_shared_key'] = array(
|
| 30 |
'#type' => 'textfield',
|
| 31 |
'#title' => t('Shared Key'),
|
| 32 |
'#default_value' => variable_get('zws_shared_key', ''),
|
| 33 |
'#required' => TRUE,
|
| 34 |
'#size' => 30,
|
| 35 |
'#maxlength' => 128,
|
| 36 |
'#description' => t('Enter your Shared Key to access the Zanox Web Services API.')
|
| 37 |
);
|
| 38 |
|
| 39 |
return system_settings_form($form);
|
| 40 |
}
|