--- C:\wamp\www\photowasp\sites\all\modules\domain\domain_conf\domain_conf.module.orig	2008-10-11 09:19:28.000000000 +1300
+++ C:\wamp\www\photowasp\sites\all\modules\domain\domain_conf\domain_conf.module	2008-11-22 08:45:01.234375000 +1300
@@ -109,19 +109,32 @@
 
 /**
  * Implements hook_form_alter()
- *
- * Since this function is only loaded at the path admin/build/domain/conf, we
- * don't have to worry about hook_form_alter() being called when not wanted.
  */
 function domain_conf_form_alter(&$form, &$form_state, $form_id) {
   // TODO: Replace with hook_domainbatch()?
   // Check to be certain that we are on the right form page.
+  global $_domain;
+  global $conf;
   $module = arg(2);
   $action = arg(3);
   // If we are making the form, load our alterations.
   if ($form_id == 'system_site_information_settings' && $module == 'domain' && $action == 'conf') {
     domain_conf_system($form, $form_state, $form_id);
   }
+  
+  /* Menu restrictions on node add/edit pages */ 
+  if (isset($form['menu']['parent']['#options']) && $_domain['domain_id'] != 0 && !empty($conf['menu_parent_items'])) {
+		// Find All custom menu items
+		$menu_names = menu_get_menus();
+		// Remove all but the parent-restricted menu
+    foreach ($menu_names as $name => $label) {
+			if ($name != $conf['menu_parent_items']) {	
+				unset($menu_names[$name]);
+			}
+		}
+		$root_menus = menu_parent_options($menu_names,0); 
+		$form['menu']['parent']['#options'] = $root_menus;
+	}
 }
 
 /**
