You are here

function hosting_alias_form_site_node_form_alter in Hosting 7.3

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

Implements 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 60
Allow sites to have domain aliases that they can be accessed with.

Code

function hosting_alias_form_site_node_form_alter(&$form, &$form_state) {
  if (user_access('create site aliases')) {
    $form['#validate'][] = 'hosting_alias_site_form_validate';
    return hosting_alias_form_data($form, $form_state);
  }
}