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',