function rec_transfer_settings_form in Recommender API 7.4
Same name and namespace in other branches
- 6.3 rec_transfer/rec_transfer.module \rec_transfer_settings_form()
- 7.5 rec_transfer/rec_transfer.module \rec_transfer_settings_form()
1 string reference to 'rec_transfer_settings_form'
- rec_transfer_menu in rec_transfer/
rec_transfer.module
File
- rec_transfer/
rec_transfer.module, line 23 - This is the module file for Recommender Data Transfer
Code
function rec_transfer_settings_form() {
$form = array();
$form['rec_transfer_endpoint'] = array(
'#type' => 'textfield',
'#title' => t('Service endpoint'),
'#description' => t('Please specify the service endpoint of the cloud.'),
'#default_value' => variable_get('rec_transfer_endpoint', ''),
'#required' => TRUE,
'#element_validate' => array(
'rec_transfer_validate_url',
),
);
$form['rec_transfer_apikey'] = array(
'#type' => 'textfield',
'#title' => t('API Key'),
'#description' => t('Please specify a valid API key.'),
'#default_value' => variable_get('rec_transfer_apikey', ''),
//'#maxlength' => 16,
'#required' => TRUE,
'#element_validate' => array(
'rec_transfer_validate_apikey',
),
);
return system_settings_form($form);
}