public function purl_subdomain::admin_form in Persistent URL 6
Same name and namespace in other branches
- 7 includes/purl_subdomain.inc \purl_subdomain::admin_form()
Allow extension of the admin setup form.
Overrides purl_processor::admin_form
File
- includes/
purl_subdomain.inc, line 8
Class
- purl_subdomain
- Subdomain prefixing.
Code
public function admin_form(&$form, $id) {
global $base_url;
$form['purl_location'] = array(
'#type' => 'fieldset',
);
$form['purl_location']['purl_base_domain'] = array(
'#type' => 'textfield',
'#title' => t('Default domain'),
'#description' => t('Enter the default domain if you are using domain modifiers.'),
'#required' => FALSE,
'#default_value' => variable_get('purl_base_domain', $base_url),
'#element_validate' => array(
'purl_validate_fqdn',
),
);
}