You are here

function hosting_subdirs_form_alter in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 subdirs/hosting_subdirs.module \hosting_subdirs_form_alter()
  2. 7.3 subdirs/hosting_subdirs.module \hosting_subdirs_form_alter()

Implements hook_form_alter().

File

subdirs/hosting_subdirs.module, line 11
Allow sites to be installed in subdirectories.

Code

function hosting_subdirs_form_alter(&$form, &$form_state, $form_id) {
  if ($form_id == 'site_node_form') {
    $form['aliases_wrapper']['#description'] .= 'Note: If the site is using a subdirectory, there should be at least one special alias with subdirectory path (e.g., example.com/foo) below. <strong>Note that subdomain (foo) and subdirectory name (foo) must be identical</strong>. Redirection to this alias will also work, if enabled. This is useful if you do not want the site to be accessible from its subdomain (e.g., foo.example.com). You can also add more standard aliases (e.g., bar.example.com, green.example.com).';
  }
}