summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authore2thex2012-11-15 18:19:26 (GMT)
committer e2thex2012-11-15 18:19:26 (GMT)
commit09c8b7b6928b1e101a427341ee9da3def339c76f (patch)
tree891af1bec2a433256d1129c6967f1c59ad52cafe
parent317a5088d2449887c3112bc80055ce2cd7f6cf4b (diff)
clean up server config form
-rw-r--r--modules/structsearchapi/service-indexing.inc23
1 files changed, 2 insertions, 21 deletions
diff --git a/modules/structsearchapi/service-indexing.inc b/modules/structsearchapi/service-indexing.inc
index 54f851d..b1b7e73 100644
--- a/modules/structsearchapi/service-indexing.inc
+++ b/modules/structsearchapi/service-indexing.inc
@@ -17,32 +17,13 @@ class SearchApiStructIndexService extends SearchApiAbstractService {
// Allow user to select which of the Networks to use for this search.
public function configurationForm(array $form, array &$form_state) {
- // Get list of available networks from structnetworks.
- $networks = variable_get("WSF-Registry", array());
- // Put networks into options array ( key and value the same )
- $options = array();
- foreach ($networks as $network) {
- $options[$network] = $network;
- }
-
- // Network form select
+ // TODO change to select field
$form['dataset'] = array(
- '#type' => 'textnGfield',
+ '#type' => 'textfield',
'#title' => 'Dataset',
'#default_value' => isset($this->options['dataset']) ? $this->options['dataset']: "",
);
- $resource_types = resource_types();
- $options = array();
- foreach($resource_types as $name => $type) {
- $options[$name] = $type->label;
- }
- $form['resource_type'] = array(
- '#type'=> 'select',
- '#options' => $options,
- '#title' => t("Resource Type"),
- '#default_value' => isset($this->options['resource_type']) ? $this->options['resource_type']: "",
- );
return $form;
}