--- sites/all/modules/forward/forward.module	2010-11-30 00:51:47.000000000 +0200
+++ sites/all/modules/forward/forwardNEW.module	2010-12-02 13:38:19.000000000 +0200
@@ -89,7 +89,7 @@ function forward_admin_settings() {
   global $base_url;
 
   $host=parse_url($base_url);
-
+  
   // Administrative Options
   $form['forward_options'] = array(
     '#type' => 'fieldset',
@@ -97,6 +97,15 @@ function forward_admin_settings() {
     '#collapsible' => TRUE,
     '#collapsed' => FALSE
   );
+  
+$form['forward_options']['forward_custom_icon'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Path to custom icon'),
+    '#size' => 60,
+    '#default_value' => variable_get('forward_custom_icon', NULL),
+    '#description' => t('Set the path to your custom icon. Must be under files directory.'),
+  );
+  
   $form['forward_options']['forward_link_style'] = array(
     '#type' => 'radios',
     '#title' => t('Link style'),
@@ -937,7 +946,11 @@ function forward_link($type, $node=0, $t
     if (!$teaser || variable_get('forward_display_teasers', 0)) {
       drupal_add_css(drupal_get_path('module', 'forward') .'/forward.css');
       $title = check_plain(t(variable_get('forward_link_title', 'Email this !type'), array('!type' => $forward_link_type)));
-      $img = drupal_get_path('module', 'forward') .'/forward.gif';
+      $custom_icon = check_plain(t(variable_get('forward_custom_icon',NULL)));
+	  if ($custom_icon == NULL) {
+		$img = drupal_get_path('module', 'forward') .'/forward.gif'; }
+	  else {
+	    $img = file_directory_path() .'/'. $custom_icon; }	
       $html = FALSE;
       switch (variable_get('forward_link_style', 0)) {
         case 1:
