diff --git a/sites/all/modules/contrib/widgets/widgets.admin.inc b/sites/all/modules/contrib/widgets/widgets.admin.inc
index 13999ce..678ae6d 100644
--- a/sites/all/modules/contrib/widgets/widgets.admin.inc
+++ b/sites/all/modules/contrib/widgets/widgets.admin.inc
@@ -76,6 +76,7 @@ function widgets_set_form($form, &$form_state, $set) {
       '#title' => t('Widget set name'),
       '#markup' => $set['name'],
       '#description' => t('This widget set is being provided by %module module and may not be renamed.', array('%module' => $set['module'])),
+      '#maxlength' => 30,
     );
   }
   else {
@@ -87,6 +88,7 @@ function widgets_set_form($form, &$form_state, $set) {
       '#description' => t('The name is used as the identifier for generating the widget set. Use only lowercase alphanumeric characters, underscores (_), and hyphens (-).'),
       '#element_validate' => array('widgets_set_name_validate'),
       '#required' => TRUE,
+      '#maxlength' => 30,
     );
   }
   
@@ -444,6 +446,7 @@ function widgets_set_add_form($form, &$form_state) {
     '#description' => t('The name is used to identify the widget set in blocks, tokens and other displays. Use only lowercase alphanumeric characters, underscores (_), and hyphens (-).'),
     '#element_validate' => array('widgets_set_name_validate'),
     '#required' => TRUE,
+    '#maxlength' => 30,
   );
 
   $form['submit'] = array(
