--- C:/Users/Dane Powell/Desktop/pixture_reloaded/template.php	Mon May 04 16:34:31 2009
+++ C:/Users/Dane Powell/Desktop/themes/pixture_reloaded/template.php	Sun Aug 23 10:15:41 2009
@@ -281,4 +281,37 @@
     $string = 'n'. $string;
   }
   return strtolower(preg_replace('/[^a-zA-Z0-9-]+/', '-', $string));
-}
\ No newline at end of file
+}
+
+function pixture_reloaded_form_element($element, $value) {
+  $output  = '<div class="form-item"';
+  if (!empty($element['#id'])) {
+    $output .= ' id="'. $element['#id'] .'-wrapper"';
+  }
+  $output .= ">\n";
+  $required = !empty($element['#required']) ? '<span class="form-required" title="'. t('This field is required.') .'">*</span>' : '';
+
+  if (!empty($element['#title'])) {
+    $title = $element['#title'];
+    if (!empty($element['#id'])) {
+      $output .= ' <label for="'. $element['#id'] .'">'. t('!title: !required', array('!title' => filter_xss_admin($title), '!required' => $required)) ."</label>\n";
+    }
+    else {
+      $output .= ' <label>'. t('!title: !required', array('!title' => filter_xss_admin($title), '!required' => $required)) ."</label>\n";
+    }
+    if (!empty($element['#description'])) {
+      $output .= ' <div class="description">'. $element['#description'] ."</div>\n";
+    }
+    $output .= " $value\n";
+  }
+  else{
+    $output .= " $value\n";
+    if (!empty($element['#description'])) {
+      $output .= ' <div class="description">'. $element['#description'] ."</div>\n";
+    }
+  }
+
+  $output .= "</div>\n";
+
+  return $output;
+}
