You are here

private function PurgePurgerBundleUI::get_form_edit_domain in Purge 7.2

Generate the domain form elements.

File

includes/purge_ui.class.inc, line 316
Provides administrative interface for the Purge module.

Class

PurgePurgerBundleUI
Generates UI elements for the Purge UI module.

Code

private function get_form_edit_domain() {
  $form = array();
  $form['domain'] = array(
    '#type' => 'fieldset',
    '#title' => 'Domain Configuration',
  );
  $form['domain']['domains'] = array(
    '#type' => 'textarea',
    '#title' => t('Domains'),
    '#description' => t('For each domain name Purge sends out a request. One domain per line.'),
    '#required' => true,
    '#default_value' => implode("\n", $this->form_item->domains),
  );
  return $form;
}