diff --git a/webform_validation.module b/webform_validation.module
index 24458eb..3f91926 100644
--- a/webform_validation.module
+++ b/webform_validation.module
@@ -376,6 +376,60 @@ function webform_validation_node_delete($node) {
 }
 
 /**
+ * Implements hook_node_export_node_alter().
+ */
+function webform_validation_node_export_node_alter(&$node, $original_node) {
+  // Add validation array for the exported node
+  if (isset($original_node->webform)) {
+    $node->webform['validation'] = array();
+    // Get all validation rules
+    $validation_rules = db_query("SELECT * FROM {webform_validation_rule} WHERE nid = :nid", array(':nid' => $node->nid));
+    $rules = new stdClass;
+    $rules->components = array();
+    foreach ($validation_rules as $rule) {
+      // Get all validation components
+      $validation_components = db_query("SELECT * FROM {webform_validation_rule_components} WHERE ruleid = :rid", array(':rid' => $rule->ruleid));
+      foreach ($validation_components as $component) {
+        $rule->components[] = $component;
+      }
+      // Append the validation rule to the validation array
+      $node->webform['validation'][] = $rule;
+    }
+  }
+}
+
+/**
+ * Implements hook_node_export_after_import_alter().
+ */
+function webform_validation_node_export_after_import_alter(&$nodes, $format, $save) {
+  foreach ($nodes as $node) {
+    // Insert validation rule and components during the node import
+    if (isset($node->webform)) {
+      if (!empty($node->webform['validation'])) {
+        // remove the existing rules to be replaced with the new ones
+        $query = db_select('webform_validation_rule', 'wvr')
+          ->fields('wvr', array('ruleid' , 'nid',))
+          ->condition('wvr.nid', $node->nid,'=');
+        $results = $query->execute()->fetchAll();
+        foreach ($results as $result) {
+          webform_dynamic_delete_rule($result->ruleid);
+        }
+        foreach ($node->webform['validation'] as $rule ) {
+          unset($rule->ruleid);
+          $rule->nid = $node->nid;
+          // The $rule->nid will be updated after the node creation in the hook_nodeapi()
+          drupal_write_record('webform_validation_rule', $rule);
+
+          foreach ($rule->components as $component) {
+            db_query("INSERT INTO {webform_validation_rule_components} (ruleid, cid) VALUES (:rid, :cid)", array( ':rid' => $rule->ruleid, ':cid' => $component->cid));
+          }
+        }
+      }
+    }
+  }
+}
+
+/**
  * Adds support for node_clone module.
  */
 function webform_validation_node_clone($node) {
