/[drupal]/contributions/modules/xmppframework/xmppframework.admin.inc
ViewVC logotype

Contents of /contributions/modules/xmppframework/xmppframework.admin.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Thu Oct 2 20:57:51 2008 UTC (13 months, 3 weeks ago) by darrenferguson
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, HEAD
Branch point for: DRUPAL-6--1, DRUPAL-6--2
File MIME type: text/x-php
Committing the xmppframework to the repository
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 }

  ViewVC Help
Powered by ViewVC 1.1.2