From 38a94bac3f75603d9d6e74fbb571d0d2b95ccea3 Mon Sep 17 00:00:00 2001 From: Marek Isalski Date: Sun, 13 Mar 2016 09:33:24 +0100 Subject: [PATCH] choose which instance of fulcrm to API to --- fulcrm_apiv2.admin.inc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/fulcrm_apiv2.admin.inc b/fulcrm_apiv2.admin.inc index e7de9c9..36ad457 100644 --- a/fulcrm_apiv2.admin.inc +++ b/fulcrm_apiv2.admin.inc @@ -1,6 +1,7 @@ 'fulcrm.org APIv2 Credentials', ); + $form[ 'api' ][ 'hostname' ] = array( '#type' => 'select', + '#title' => 'Instance', + '#description' => 'fulcrm.org APIv2 instance', + '#options' => array( 'fulcrm.org' => 'LIVE', + 'test.fulcrm.org' => 'TEST (live data, pre-production code)', + 'dev.fulcrm.org' => 'DEV (test data, in-development code)', + ), + '#default_value' => variable_get( 'fulcrm_apiv2_hostname', 'fulcrm.org' ), + ); $form[ 'api' ][ 'apiuser' ] = array( '#type' => 'textfield', '#title' => 'API Username', '#description' => 'fulcrm.org APIv2 username', '#default_value' => variable_get( 'fulcrm_apiv2_user', '' ), ); - $form[ 'api' ][ 'apikey' ] = array( '#type' => 'textfield', '#title' => 'API Key', '#description' => 'fulcrm.org APIv2 key',