function cloudflare_admin in CloudFlare 7
Same name and namespace in other branches
- 6 cloudflare.module \cloudflare_admin()
- 7.2 cloudflare.module \cloudflare_admin()
cloudflare_menu() page callback function.
1 string reference to 'cloudflare_admin'
- cloudflare_menu in ./
cloudflare.module - Implementation of hook_menu().
File
- ./
cloudflare.module, line 31
Code
function cloudflare_admin() {
$form = array();
$form['cloudflare_api_email'] = array(
'#type' => 'textfield',
'#title' => t('E-mail address'),
'#description' => t('Email address for your Cloudflare account. You can find it on the ') . l(t('Account Tab'), 'https://www.cloudflare.com/my-account.html'),
'#default_value' => variable_get('cloudflare_api_email', ''),
'#required' => TRUE,
);
$form['cloudflare_api_key'] = array(
'#type' => 'textfield',
'#title' => t('API key'),
'#description' => t('API key for your Cloudflare account. You can find it on the ') . l(t('Account Tab'), 'https://www.cloudflare.com/my-account.html'),
'#default_value' => variable_get('cloudflare_api_key', ''),
'#required' => TRUE,
);
return system_settings_form($form);
}