--- annotate.module.5.x-1.1.orig 2008-06-10 11:41:16.000000000 -0700 +++ annotate.module 2008-06-10 11:38:49.000000000 -0700 @@ -201,26 +201,34 @@ function annotate_private_entry_form($no ANNOTATE_ENUM_VISIBILITY_OTHERS => t('Others'), ); - $form['annotate']['note_filter']['note'] = array( - '#type' => 'textarea', - '#title' => t('Notes'), - '#default_value' => $node->annotation_note, - '#description' => t('Make your personal annotations about this content here. When marked private only you (and the site administrator) will be able to see them.') - ); - $form['annotate']['note_filter']['format']= filter_form( $node->annotation_note_format); - - $form['annotate']['visibility'] = array( - '#type' => 'radios', - '#title' => t('Visibility'), - '#default_value' => isset($node->annotation_visibility)? $node->annotation_visibility : 0, - '#options' => $options, - '#description' => t('Set the visibility of this annotation'), - ); - - $form['annotate']['submit'] = array( - '#type' => 'submit', - '#value' => t('Update') - ); + // Printer friendly code as per: http://drupal.org/node/268683 + if ($node->printing === TRUE) { + $form['annotate']['note_filter']['note'] = array( + '#type' => 'textarea', + '#title' => t('Notes'), + '#default_value' => $node->annotation_note, + ); + } else { + $form['annotate']['note_filter']['note'] = array( + '#type' => 'textarea', + '#title' => t('Notes'), + '#default_value' => $node->annotation_note, + '#description' => t('Make your personal annotations about this content here. When marked private only you (and the site administrator) will be able to see them.') + ); + $form['annotate']['note_filter']['format']= filter_form( $node->annotation_note_format); + $form['annotate']['visibility'] = array( + '#type' => 'radios', + '#title' => t('Visibility'), + '#default_value' => isset($node->annotation_visibility)? $node->annotation_visibility : 0, + '#options' => $options, + '#description' => t('Set the visibility of this annotation'), + ); + + $form['annotate']['submit'] = array( + '#type' => 'submit', + '#value' => t('Update') + ); + } return $form; }