--- bookreview.module.orig 2006-03-27 05:09:42.000000000 -0800 +++ bookreview.module 2006-05-23 00:06:17.000000000 -0700 @@ -1,5 +1,7 @@ numlinks; $i++) { $booklink = "booklink-$i"; - if ($node->$booklinks) { + if ($node->booklinks) { db_query("INSERT INTO {bookreview_links} (nid, booklink, description, weight) VALUES (%d, '%s', '%s', %d)", $node->nid, $node->$booklink, $node->$linkdescription, $i); } } @@ -392,7 +394,7 @@ '#description' => t('A synopsis of the book being reviewed. (For example, the text on the back cover, or inside front cover of most books.)'), ); - $form['content'] = array( + $form['contents'] = array( '#type' => 'textarea', '#title' => t('Contents'), '#default_value' => $node->contents, @@ -427,7 +429,7 @@ 'type' => MENU_SUGGESTED_ITEM); } else { - if ($css = variable_get('bookreview_css', 'modules/bookreview/bookreview.css')) { + if ($css = variable_get('bookreview_css', BOOKREVIEW_PATH . '/bookreview.css')) { drupal_set_html_head("\n\n"); } } @@ -435,7 +437,7 @@ } function bookreview_settings() { - if (!file_check_location(variable_get('bookreview_css', 'modules/bookreview/bookreview.css'))) { + if (!file_check_location(variable_get('bookreview_css', BOOKREVIEW_PATH . '/bookreview.css'))) { $error['bookreview_css'] = theme('error', t('File does not exist, or is not readable.')); } @@ -444,10 +446,10 @@ '#title' => t('Bookreview settings'), ); - $form['bookreview_settings']['stylesheet'] = array( + $form['bookreview_settings']['bookreview_css'] = array( '#type' => 'textfield', '#title' => t('Style sheet'), - '#default_value' => variable_get('bookreview_css', 'modules/bookreview/bookreview.css'), + '#default_value' => variable_get('bookreview_css', BOOKREVIEW_PATH . '/bookreview.css'), '#size' => 70, '#maxlength' => 255, '#description' => t("Specify the relative path to your bookreview style sheet. The style sheet specified here will be used to style your bookreview pages. If you prefer to style your bookreview pages in your theme, you can leave this field blank.". $error['bookreview_css'])