function nexmo_admin_form in Nexmo SMS Gateway 7
NEXMO Configuration form.
2 string references to 'nexmo_admin_form'
- nexmo_gateway_info in ./
nexmo.module - Implements hook_gateway_info().
- nexmo_menu in ./
nexmo.module - Implements hook_menu().
File
- ./
nexmo.admin.inc, line 11 - Provides NEXMO configuration form.
Code
function nexmo_admin_form($form) {
$form['nexmo_api_key'] = array(
'#type' => 'textfield',
'#title' => t('API Key'),
'#default_value' => variable_get('nexmo_api_key', ''),
'#description' => t('Your Nexmo account api key'),
'#required' => TRUE,
);
$form['nexmo_api_secret'] = array(
'#type' => 'textfield',
'#title' => t('API Secret'),
'#default_value' => variable_get('nexmo_api_secret', ''),
'#description' => t('Your Nexmo account api Secret'),
'#required' => TRUE,
);
$form['nexmo_api_sender'] = array(
'#type' => 'textfield',
'#title' => t('Default Sender (from)'),
'#default_value' => variable_get('nexmo_api_sender', ''),
'#description' => t('Your Default Sender (from)'),
);
return system_settings_form($form);
}