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

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

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


Revision 1.3 - (show annotations) (download) (as text)
Fri Jun 6 10:09:07 2008 UTC (17 months, 3 weeks ago) by arto
Branch: MAIN
CVS Tags: DRUPAL-6--1-0-ALPHA1, HEAD
Changes since 1.2: +0 -0 lines
File MIME type: text/x-php
Imported latest 6.x version (r472) from SVN development repository.

Changelog:
- Update menu handling for Drupal 6.2 compatibility.
- Improved error handling in HTTP client.
- Implemented preliminary parsing of resultsets in XML format.
- Implemented more extensive datatype/xml:lang handling for resultset bindings.
- Added sponsors to README.txt.
1 <?php
2 // $Id$
3 /**
4 * sparql.admin.inc - SPARQL API admin page callbacks.
5 *
6 * @author Arto Bendiken <http://bendiken.net/>
7 * @copyright Copyright (c) 2007-2008 Arto Bendiken. All rights reserved.
8 * @license GPL <http://creativecommons.org/licenses/GPL/2.0/>
9 * @package sparql.module
10 */
11
12 //////////////////////////////////////////////////////////////////////////////
13 // SPARQL settings form
14
15 function sparql_admin_settings() {
16 $form = array();
17
18 $form['server'] = array('#type' => 'fieldset', '#title' => t('SPARQL endpoint settings'), '#collapsible' => TRUE, '#collapsed' => FALSE);
19 $form['server']['sparql_endpoint'] = array('#type' => 'radios', '#title' => t('SPARQL endpoint'), '#default_value' => (int)SPARQL_ENDPOINT, '#options' => array(t('Disabled'), t('Enabled')), '#description' => t(''));
20 $form['server']['sparql_features'] = array('#type' => 'checkboxes', '#title' => t('Enabled features'), '#default_value' => array_filter(variable_get('sparql_features', array('select', 'ask', 'construct', 'describe')), 'is_string'), '#options' => array('select' => t('SELECT'), 'ask' => t('ASK'), 'construct' => t('CONSTRUCT'), 'describe' => t('DESCRIBE')), '#description' => t(''));
21
22 return system_settings_form($form);
23 }

  ViewVC Help
Powered by ViewVC 1.1.2