/[drupal]/contributions/modules/wishlist/wishlist.module
ViewVC logotype

Diff of /contributions/modules/wishlist/wishlist.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.39 by smclewin, Fri Nov 23 18:01:26 2007 UTC revision 1.40 by smclewin, Fri Nov 23 18:39:24 2007 UTC
# Line 1  Line 1 
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
# Line 1708  function wishlist_reveal_form() { Line 1708  function wishlist_reveal_form() {
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  ?>  ?>

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40

  ViewVC Help
Powered by ViewVC 1.1.3