function hosting_alias_settings in Hosting 5
Same name and namespace in other branches
- 6.2 alias/hosting_alias.module \hosting_alias_settings()
- 7.4 alias/hosting_alias.module \hosting_alias_settings()
- 7.3 alias/hosting_alias.module \hosting_alias_settings()
Configuration form for aliasing
1 string reference to 'hosting_alias_settings'
- hosting_alias_menu in alias/
hosting_alias.module - Implementation of hook_menu
File
- alias/
hosting_alias.module, line 177
Code
function hosting_alias_settings() {
$form['hosting_alias_subdomain'] = array(
'#type' => 'textfield',
'#title' => t('Domain used for automatic subdomain hosting'),
'#description' => t('To be able to provide a temporary url for your sites, you need to have configured a wild card dns entry<br /> resolving all calls to subdomains of your chosen domain, to point at your Drupal server'),
'#default_value' => variable_get('hosting_alias_subdomain', ''),
);
$form['hosting_alias_automatic_www'] = array(
'#type' => 'checkbox',
'#title' => t('Generate www.domain.com alias automatically'),
'#description' => t('If a domain name does not start with www., automatically create an alias for www.hostname?'),
'#default_value' => variable_get('hosting_alias_automatic_www', FALSE),
);
$form['hosting_alias_automatic_no_www'] = array(
'#type' => 'checkbox',
'#title' => t('Generate domain.com alias automatically'),
'#description' => t('If a domain name starts with www., automatically create an alias for domain.com?'),
'#default_value' => variable_get('hosting_alias_automatic_no_www', FALSE),
);
return system_settings_form($form);
}