| 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 |
}
|