--- G:\D7-modules\contact_attach\contact_attach.admin.inc
+++ G:\D7-modules\contact_attach - test\contact_attach.admin.inc
@@ -106,6 +106,38 @@
     }
   }
 
+  if (module_exists('contact_forms')) {
+    $form['settings_site_form']['contact_attach_who_form'] = array(
+      '#type' => 'fieldset',
+      '#title' => t('Settings who can receive attachments'),
+      '#collapsible' => TRUE,
+      '#collapsed' => TRUE,
+    );
+    $form['settings_site_form']['contact_attach_who_form']['contact_attach_all'] = array(
+      '#type'          => 'select',
+      '#title'         => t('All contacts'),
+      '#default_value' => variable_get('contact_attach_all', 1),
+      '#options'       => array(0 => t('No'), 1 => t('Yes')),
+      '#description'   => t('If No, you can select the contacts who can receive attachments below.'),
+      '#required'      => TRUE,
+    );
+    $contacts[0] = t('All');
+    $result = db_query('SELECT cid, category FROM {contact} WHERE weight < 100 ORDER BY weight, category');
+    foreach ($result AS $contact) {
+      $contacts[$contact->cid] = check_plain($contact->category);
+    }
+    $form['settings_site_form']['contact_attach_who_form']['contact_attach_contacts'] = array(
+    	'#type'          => 'select',
+      '#title'         => t('Select contacts'),
+  	  '#default_value' => variable_get('contact_attach_contacts', array()),
+    	'#options'       => $contacts,
+      '#multiple'      => TRUE,
+      '#required'      => TRUE,
+      '#size'          => (count($contacts) > 10) ? intval(count($contacts) / 2) : count($contacts),
+      '#description'   => t('You can select multiple contacts.'),
+    );
+  }
+
   $form['#validate'] = array('contact_attach_admin_settings_validate');
 
   return system_settings_form($form);