Index: recipe.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/recipe/recipe.install,v
retrieving revision 1.10
diff -u -p -r1.10 recipe.install
--- recipe.install	20 Apr 2008 19:05:12 -0000	1.10
+++ recipe.install	27 Dec 2009 08:18:02 -0000
@@ -1,4 +1,11 @@
 <?php
+// $Id$
+
+/**
+ * @file
+ * Install, update and uninstall functions for the recipe module.
+ */
+
 function recipe_schema() {
   $schema['recipe'] = array(
     'fields' => array(
@@ -105,7 +112,7 @@ function recipe_install() {
 }
 
 function recipe_populate_units() {
-  $s = true;
+  $s = TRUE;
   $s = $s && db_query("INSERT INTO {recipe_unit} VALUES (1, 'Slice', 'sli', 0, 'Unit');");
   $s = $s && db_query("INSERT INTO {recipe_unit} VALUES (2, 'Unit', '', 0, 'Unit');");
   $s = $s && db_query("INSERT INTO {recipe_unit} VALUES (3, 'Clove', 'clv', 0, 'Unit');");
Index: recipe.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/recipe/recipe.module,v
retrieving revision 1.85
diff -u -p -r1.85 recipe.module
--- recipe.module	26 Jun 2009 12:39:17 -0000	1.85
+++ recipe.module	27 Dec 2009 08:18:03 -0000
@@ -114,7 +114,7 @@ function recipe_delete($node) {
 /**
 * Implementation of hook_form().
 */
-function recipe_form(&$node,$form_state) {
+function recipe_form(&$node, $form_state) {
   // drupal 4.7 requires the title field to be defined by the custom node's module
   $form['title'] = array('#type' => 'textfield', '#title' => t('Title'),
     '#size' => 60, '#maxlength' => 128, '#required' => TRUE,
@@ -179,7 +179,8 @@ function recipe_form(&$node,$form_state)
       $num_ingredients = $id+1;
       if ($id == 0) {
         $j = '0';
-      } else {
+      } 
+      else {
         $j = $id;
       }
      
@@ -193,7 +194,8 @@ function recipe_form(&$node,$form_state)
         $unit_id = $ingredient['unit_id'];
         $abbreviation = $ingredient['abbreviation'];
         $quantity = $ingredient['quantity'];
-      } else {
+      } 
+      else {
         $name = $ingredient->name;
         $unit_id = $ingredient->unit_id;
         $abbreviation = $ingredient->abbreviation;
@@ -208,7 +210,8 @@ function recipe_form(&$node,$form_state)
             $ingredient['quantity'] = '';
             $ingredient['unit_id'] = 21;
             $ingredient['name'] = '';
-          } else {
+          } 
+          else {
             $ingredient->quantity = '';
             $ingredient->unit_id = 21;
             $ingredient->name = '';
@@ -380,7 +383,7 @@ function recipe_admin_settings() {
     '#default_value' => variable_get('recipe_recent_box_enable', 1),
     '#options' => array(t('Disabled'), t('Enabled')),
     '#description' => t('Enables or Disables the recent recipes box on the recipes index page.'),
-    '#required' => false,
+    '#required' => FALSE,
   );
   $form['recipe_recent_box_title'] = array(
     '#type' => 'textfield',
@@ -427,7 +430,7 @@ function recipe_admin_settings() {
     '#default_value' => variable_get('recipe_export_html_enable', 1),
     '#options' => array(t('Disabled'), t('Enabled')),
     '#description' => t('Enables or Disables the Export as HTML link.'),
-    '#required' => false,
+    '#required' => FALSE,
   );
   $form['recipe_export_recipeml_enable'] = array(
     '#type' => 'radios',
@@ -435,7 +438,7 @@ function recipe_admin_settings() {
     '#default_value' => variable_get('recipe_export_recipeml_enable', 1),
     '#options' => array(t('Disabled'), t('Enabled')),
     '#description' => t('Enables or Disables the Export as RecipeML link.'),
-    '#required' => false,
+    '#required' => FALSE,
   );
   return system_settings_form($form);
 }
@@ -685,7 +688,7 @@ function recipe_ingredient_quantity_from
     $pos_space = strpos($ingredient_quantity, ' ');
     // can't trust $pos_space to be a zero value if there is no space
     // so set it explicitly
-    if ($pos_space === false)
+    if ($pos_space === FALSE)
       $pos_space = 0;
 
     $whole = substr($ingredient_quantity, 0, $pos_space);
@@ -709,7 +712,7 @@ function recipe_save_ingredients($node) 
 
   if (count($changes->remove) > 0) {
     $ids = implode(',', $changes->remove);
-    db_query("DELETE FROM {recipe_node_ingredient} WHERE id IN (%s)", $ids);
+    db_query("DELETE FROM {recipe_node_ingredient} WHERE id IN ('%s')", $ids);
   }
 
   foreach ($changes->add as $ingredient) {
@@ -770,9 +773,9 @@ function _in_array($a, $b) {
       $compareto = trim(strtolower($row->name));
     }
     if ($a->name === $compareto)
-      return true;
+      return TRUE;
   }
-  return false;
+  return FALSE;
 }
 
 /**
@@ -993,7 +996,7 @@ function recipe_parse_ingredient_string(
     return $ingredient;
   }
   else {
-    return false;
+    return FALSE;
   }
 }
 
@@ -1109,7 +1112,7 @@ function recipe_build_index(&$tree, $par
   do {
     $cur = current($tree);
     $nex = next($tree);
-    if ($nex === false) {
+    if ($nex === FALSE) {
       $next_depth = -1;
     }
     else {
@@ -1125,7 +1128,7 @@ function recipe_build_index(&$tree, $par
       // sync $next_depth, because 'next item' may be shoved forward
       // Thanks for the patch Roderik.
       $nex = current($tree);
-      if ($nex === false) {
+      if ($nex === FALSE) {
         $next_depth = -1;
       }
       else {
@@ -1241,7 +1244,7 @@ function recipe_node_prepare($node, $tea
             $ingredient["name"] = check_plain($ingredient["name"]);
           }
         }
-        else if (is_object($ingredient) ) {
+        elseif (is_object($ingredient) ) {
           if (isset($ingredient->name)) {
             $ingredient->name = check_plain($ingredient->name);
           }
