function alchemy_admin_settings in Alchemy 6
Same name and namespace in other branches
- 7 alchemy.admin.inc \alchemy_admin_settings()
Displays the form for the standard settings tab.
Return value
array A structured array for use with Forms API.
1 string reference to 'alchemy_admin_settings'
- alchemy_menu in ./
alchemy.module - Implementation of hook_menu().
File
- ./
alchemy.admin.inc, line 17 - Admin include file.
Code
function alchemy_admin_settings() {
$apikey = variable_get('alchemy_apikey', '');
$form['alchemy_apikey'] = array(
'#type' => 'textfield',
'#title' => t('Alchemy API Key'),
'#default_value' => $apikey,
'#description' => t('You need an API key to use the Alchemy API service. !alchemy_link.', array(
'!alchemy_link' => l(t('Get an Alchemy API key here'), 'http://www.alchemyapi.com/api/register.html', array(
'attributes' => array(
'target',
'alchemy',
),
)),
)),
);
return system_settings_form($form);
}