function hosting_alias_form_site_node_form_alter

7.x-3.x hosting_alias.module hosting_alias_form_site_node_form_alter(&$form, &$form_state)

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