| 1 |
<?php |
<?php |
| 2 |
/* $Id: wishlist.module,v 1.38.2.1 2007/11/23 17:52:41 smclewin Exp $ */ |
/* $Id: wishlist.module,v 1.38.2.2 2007/11/23 18:38:33 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 |
| 1708 |
return $form; |
return $form; |
| 1709 |
} |
} |
| 1710 |
|
|
| 1711 |
|
/** |
| 1712 |
|
* Implementation of hook_views_tables(). |
| 1713 |
|
* |
| 1714 |
|
* Initial views support contributed by draco2002 http://drupal.org/user/76079 |
| 1715 |
|
*/ |
| 1716 |
|
function wishlist_views_tables() { |
| 1717 |
|
$tables['wishlist'] = array( |
| 1718 |
|
'name' => 'wishlist', |
| 1719 |
|
'join' => array( |
| 1720 |
|
'left' => array( |
| 1721 |
|
'table' => 'node', |
| 1722 |
|
'field' => 'nid' |
| 1723 |
|
), |
| 1724 |
|
'right' => array( |
| 1725 |
|
'field' => 'nid' |
| 1726 |
|
), |
| 1727 |
|
), |
| 1728 |
|
'fields' => array( |
| 1729 |
|
'item_priority' => array( |
| 1730 |
|
'name' => t('Wishlist: Display Priority'), |
| 1731 |
|
'sortable' => TRUE, |
| 1732 |
|
), |
| 1733 |
|
), |
| 1734 |
|
'sorts' => array( |
| 1735 |
|
'item_priority' => array( |
| 1736 |
|
'name' => t('Wishlist: Display Priority'), |
| 1737 |
|
'help' => t('Sort by display prioiry'), |
| 1738 |
|
), |
| 1739 |
|
), |
| 1740 |
|
); |
| 1741 |
|
|
| 1742 |
|
return $tables; |
| 1743 |
|
} |
| 1744 |
|
|
| 1745 |
|
|
| 1746 |
?> |
?> |