You are here

public function purl_domain::admin_form in Persistent URL 6

Same name and namespace in other branches
  1. 7 includes/purl_domain.inc \purl_domain::admin_form()

Allow extension of the admin setup form.

Overrides purl_processor::admin_form

File

includes/purl_domain.inc, line 8

Class

purl_domain
Full domain handling.

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',
    ),
  );
}