diff -u b/webform_features.install b/webform_features.install --- b/webform_features.install +++ b/webform_features.install @@ -66,6 +66,7 @@ $machine_name = $node->title; $machine_name = drupal_strtolower($machine_name); $machine_name = preg_replace('#[^a-z]+#', '_', $machine_name); + $machine_name = substr($machine_name, 0, $maxlength); // Ensure machine name is unique $name = $machine_name; @@ -105,6 +106,7 @@ // Build machine name from the webform's one and the form_key $machine_name = $result->webform_machine_name . '-' . $result->form_key; + $machine_name = substr($machine_name, 0, $maxlength); // Ensure machine name is unique $name = $machine_name;