| 1 |
<?php |
<?php |
| 2 |
/* $Id:$ */ |
/* $Id: wishlist.page.inc,v 1.1 2007/11/25 03:34:04 smclewin Exp $ */ |
| 3 |
// Wishlist management module for Drupal |
// Wishlist management module for Drupal |
| 4 |
// Written by Scott McLewin and Melanie Paul-McLewin |
// Written by Scott McLewin and Melanie Paul-McLewin |
| 5 |
// drupal AT mclewin DOT com |
// drupal AT mclewin DOT com |
| 188 |
$body = $node->body; |
$body = $node->body; |
| 189 |
} |
} |
| 190 |
$body = check_markup($body, $node->format); |
$body = check_markup($body, $node->format); |
| 191 |
|
|
| 192 |
|
|
| 193 |
// If the module is configured to toss links open in new windows, then generate the appropriate attributes for the link |
// If the module is configured to toss links open in new windows, then generate the appropriate attributes for the link |
| 194 |
|
$linkattributes = array(); |
| 195 |
if(variable_get("wishlist_url_in_new_window", FALSE)) { |
if(variable_get("wishlist_url_in_new_window", FALSE)) { |
| 196 |
$url_link_target["target"] = "_wishlist_url_window"; |
$linkattributes = array('attributes' => array('target' => '_wishlist_url_window')); |
| 197 |
} |
} |
| 198 |
|
|
| 199 |
|
|
| 206 |
|| _wishlist_hide_purchase_info($node)) { |
|| _wishlist_hide_purchase_info($node)) { |
| 207 |
$links = _wishlist_url($node->item_url1, 20) . "<BR>" . _wishlist_url($node->item_url2, 20); |
$links = _wishlist_url($node->item_url1, 20) . "<BR>" . _wishlist_url($node->item_url2, 20); |
| 208 |
} else { |
} else { |
| 209 |
$links = l(_wishlist_url($node->item_url1, 20), $node->item_url1, array('attributes' => array('target' => $url_link_target)))."<BR>".l(_wishlist_url($node->item_url2, 20), $node->item_url2, array('attributes' => array('target' => $url_link_target))); |
$links = l(_wishlist_url($node->item_url1, 20), $node->item_url1, $linkattributes)."<BR>".l(_wishlist_url($node->item_url2, 20), $node->item_url2, $linkattributes); |
| 210 |
} |
} |
| 211 |
|
|
| 212 |
$rowdata = array(); |
$rowdata = array(); |