| 1 |
<?php |
<?php |
| 2 |
/* $Id: wishlist.module,v 1.43 2008/01/16 05:44:44 smclewin Exp $ */ |
/* $Id: wishlist.module,v 1.44 2008/01/26 23:01:53 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 |
| 773 |
// then check to see if this user, the owner, has the right to reveal |
// then check to see if this user, the owner, has the right to reveal |
| 774 |
// and reveal mode is turned on. If not, do not show this region. |
// and reveal mode is turned on. If not, do not show this region. |
| 775 |
if(variable_get("wishlist_hide_purchase_info_own", FALSE) && ($user->uid == $node->uid)) { |
if(variable_get("wishlist_hide_purchase_info_own", FALSE) && ($user->uid == $node->uid)) { |
| 776 |
if(user_access('reveal purchase status') && ($_GET['wl_reveal'] != 1)) { |
if(user_access('reveal purchase status') && isset($_GET['wl_reveal']) && ($_GET['wl_reveal'] != 1)) { |
| 777 |
return ''; |
return ''; |
| 778 |
} |
} |
| 779 |
} |
} |
| 957 |
// for the wl_reveal GET parameter. If it is non-zero, then |
// for the wl_reveal GET parameter. If it is non-zero, then |
| 958 |
// we won't hide the purchase details. |
// we won't hide the purchase details. |
| 959 |
if(user_access('reveal purchase status')) { |
if(user_access('reveal purchase status')) { |
| 960 |
if($_GET['wl_reveal'] != 0) { |
if(isset($_GET['wl_reveal']) && ($_GET['wl_reveal'] != 0)) { |
| 961 |
return false; |
return false; |
| 962 |
} |
} |
| 963 |
} |
} |