diff --git a/sites/all/modules/contrib/snippet/snippet.module b/sites/all/modules/contrib/snippet/snippet.module
index 79ac7fb..11d2ac0 100644
--- a/sites/all/modules/contrib/snippet/snippet.module
+++ b/sites/all/modules/contrib/snippet/snippet.module
@@ -93,11 +93,11 @@ function snippet_theme() {
   );
 }
 
-/** 
- * Preprocess function for theme_snippet. 
+/**
+ * Preprocess function for theme_snippet.
  */
 function template_preprocess_snippet(&$vars) {
-	// Build contextual links 
+	// Build contextual links
   if (user_access('manage snippet')) {
     // get the destination
     $destination = drupal_get_destination();
@@ -118,7 +118,7 @@ function template_preprocess_snippet(&$vars) {
       'href' => SNIPPET_MENU_PREFIX . "/" . $vars['name'] . "/revision",
       'query' => $destination,
      );
-    
+
     $build = array(
       '#prefix' => '<div class="contextual-links-wrapper">',
       '#suffix' => '</div>',
@@ -134,26 +134,30 @@ function template_preprocess_snippet(&$vars) {
         ),
       ),
     );
-    
+
     $vars['admin_links'] = drupal_render($build);
-    $vars['classes_array'][] = 'contextual-links-region';  
+    $vars['classes_array'][] = 'contextual-links-region';
+    $vars['attributes_array']['class'][] = 'contextual-links-region';
+
   }
-  
-  // Add to attributes arrays for wrapper, title & content HTML elements. 
+
+  // Add to attributes arrays for wrapper, title & content HTML elements.
   $vars['classes_array'][] = drupal_html_class($vars['name']);
+  $vars['attributes_array']['class'][] = drupal_html_class($vars['name']);
   $vars['attributes_array']['id'] = drupal_html_id($vars['name']);
   $vars['title_attributes_array']['class'][] = 'snippet-title';
   $vars['content_attributes_array']['class'][] = 'snippet-content';
-  
+
   // Add text to snippet body when content is empty but user has
-  // edit permissions. 
+  // edit permissions.
   if (empty($vars['content'])) {
 		if (user_access('manage snippet') || user_access('administer snippet')) {
 			$vars['content'] = t('<em>Empty snippet. Hover to edit.</em>');
 			$vars['classes_array'][] = 'snippet-empty';
-	  }  
-  }  
-  
+			$vars['attributes_array']['class'][] = 'snippet-empty';
+	  }
+  }
+
 }
 
 /**
@@ -173,7 +177,7 @@ function snippet_menu() {
 }
 
 /**
- * AJAX Callback for in-place editor 
+ * AJAX Callback for in-place editor
  */
 function snippet_get_ajax_form($type = 'ajax', $snippet_name) {
 	if ($type == 'ajax') {
@@ -183,22 +187,22 @@ function snippet_get_ajax_form($type = 'ajax', $snippet_name) {
 		$page = array('#type' => 'ajax', '#commands' => $commands);
 		ajax_deliver($page);
 	}
-} 
+}
 
 /**
- * Function to get the snippet edit form. 
+ * Function to get the snippet edit form.
  */
 function snippet_edit_form($form, &$form_state, $snippet_name) {
 	if ($snippet_name) {
 		$form = array();
 		$snippet = snippet_load($snippet_name);
-		
+
 		$form['title'] = array(
 		  '#type' => 'textfield',
       '#title' => t('Title'),
       '#default_value' => ($snippet->title_revision) ? $snippet->title_revision : (($snippet->title) ? $snippet->title : ''),
     );
-    
+
     $form['content'] = array(
       '#type' => 'text_format',
       '#title' => t('Content'),
@@ -206,12 +210,12 @@ function snippet_edit_form($form, &$form_state, $snippet_name) {
       '#format' => @$snippet->content_format,
       '#rows' => 10,
     );
-    
+
     $form['preview'] = array(
       '#type' => 'button',
       '#value' => t('Preview'),
     );
-	
+
 		return $form;
 	}
 }
\ No newline at end of file
