- array_merge: documentation ( source)
<?php
function sourceForm($source_config) {
$form = array();
$urlink1 = array('#type' => 'textfield',
'#title' => t('URL'),
'#description' => t('Enter a feed URL.'),
'#default_value' => "https://api.edmunds.com/api/vehicle/v2/vins/",
'#maxlength' => NULL,
'#required' => TRUE);
$urlkey2 = array('#type' => 'textfield',
'#title' => t('VIN'),
'#default_value' => "2G1FC3D33C9165616?fmt=json&api_key=dp9ghvr5sxrbmvupg2naccuk");
$form['source'] = array_merge($urlink1 , $urlkey2 );
return $form;
}
?>