? amazontools.txt Index: amazon.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/amazontools/amazon.module,v retrieving revision 1.63 diff -u -p -r1.63 amazon.module --- amazon.module 25 Jan 2007 00:13:16 -0000 1.63 +++ amazon.module 25 Jun 2007 20:21:00 -0000 @@ -710,6 +710,12 @@ function amazon_settings() { '#width' => 60, '#height' => 5, ); + $form['amazon_link_functionality'] = array( + '#title' => t('Link Functionality'), + '#type' => 'radios', + '#options' => array(t('Images link back to Amazon'),t('Disable image links'),t('Images link to product node')), + '#default_value' => variable_get('amazon_link_functionality', 0), + ); return system_settings_form($form); } @@ -1375,7 +1381,7 @@ function theme_amazon_block($selected_bo $book_image = $selected_book->mediumimageurl ? $selected_book->mediumimageurl : "$module_dir/images/missingm.gif"; $blockcontent = '
detailpageurl\" target=\"_blank\">";
- if ($node->mediumimageurl) {
- $output .= " ";
- }
- $output .= " | "; + $output .= " | "; + $output .= amazon_paint_image($node); + $output .= " | "; if ($node->type == 'amazon') { if ($node->detailpageurl) { $output .= "detailpageurl\" target=\"_blank\">"; @@ -1477,3 +1473,51 @@ function theme_amazon_related_link($node $output .= ' |