| 1 |
<?php
|
| 2 |
// $Id
|
| 3 |
|
| 4 |
/**
|
| 5 |
* @file
|
| 6 |
* Admin page callback file for the xmppframework module.
|
| 7 |
*/
|
| 8 |
|
| 9 |
//////////////////////////////////////////////////////////////////////////////
|
| 10 |
// XMPP Framework Admin Settings
|
| 11 |
|
| 12 |
/**
|
| 13 |
* Settings form display.
|
| 14 |
*/
|
| 15 |
function xmppframework_admin_settings() {
|
| 16 |
|
| 17 |
$options = array();
|
| 18 |
// display the apis that are available to the xmppframework module
|
| 19 |
if (($info = xmppframework_apis()) && is_array($info)) {
|
| 20 |
foreach ($info as $api => $data) {
|
| 21 |
$options[$api] = $data['name'];
|
| 22 |
}
|
| 23 |
}
|
| 24 |
|
| 25 |
$form['xmppframework'] = array('#type' => 'fieldset', '#title' => t('XMPP Framework Settings'), '#collapsible' => TRUE, '#collapsed' => FALSE);
|
| 26 |
$form['xmppframework']['xmppframework_api'] = array(
|
| 27 |
'#type' => 'select',
|
| 28 |
'#title' => t('XMPP API'),
|
| 29 |
'#default_value' => XMPPFRAMEWORK_API,
|
| 30 |
'#options' => $options,
|
| 31 |
'#description' => t('XMPP API that we shall utilize in our transactions'),
|
| 32 |
);
|
| 33 |
return system_settings_form($form);
|
| 34 |
}
|