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

Diff of /contributions/modules/paging/paging.module

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

revision 1.43, Sat Apr 18 21:34:06 2009 UTC revision 1.44, Sat Apr 18 21:50:06 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: paging.module,v 1.42 2009/01/26 16:31:46 Gurpartap Exp $  // $Id: paging.module,v 1.43 2009/04/18 21:34:06 Gurpartap Exp $
3  // Original module written by Marco Scutari.  // Original module written by Marco Scutari.
4  // Rewritten and considerably shortened and made more Drupal-friendly by Earl Miles.  // Rewritten and considerably shortened and made more Drupal-friendly by Earl Miles.
5  // Yet again rewritten, extended and currently maintained by Gurpartap Singh.  // Yet again rewritten, extended and currently maintained by Gurpartap Singh.
# Line 502  function _paging_nodeapi(&$node, &$node_ Line 502  function _paging_nodeapi(&$node, &$node_
502          // Element value to distinguish between multiple pagers on one page.          // Element value to distinguish between multiple pagers on one page.
503          $element = 1;          $element = 1;
504          $page = isset($_GET['page']) ? $_GET['page'] : '';          $page = isset($_GET['page']) ? $_GET['page'] : '';
505            $page_elements = explode(',', $page);
506            $node->page_current = $page_elements[1];
507    
508          // Only do paging          // Only do paging
509          // a) if not in teaser mode;          // a) if not in teaser mode;

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44

  ViewVC Help
Powered by ViewVC 1.1.2