You are here

function hosting_alias_form_alter in Hosting 6.2

Same name and namespace in other branches
  1. 5 alias/hosting_alias.module \hosting_alias_form_alter()

Implementation of hook_form_alter().

Add a textbox to site node forms with a newline separated list of aliases to the site

File

alias/hosting_alias.module, line 61
Allow sites to have domain aliases that they can be accessed with.

Code

function hosting_alias_form_alter(&$form, &$form_state, $form_id) {
  if ($form_id == 'site_node_form') {
    $form['#validate'][] = 'hosting_alias_site_form_validate';
    return hosting_alias_form_data($form, $form_state);
  }
}