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

Diff of /contributions/modules/content_slider/content_slider.module

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

revision 1.1.2.4, Sun Dec 14 19:24:45 2008 UTC revision 1.1.2.5, Mon Dec 22 13:16:33 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: content_slider.module,v 1.1.2.2 2008/12/015 12:59:40 ebizondrupalservices Exp $  // $Id: content_slider.module,v 1.1.2.4 2008/12/14 19:24:45 ebizondrupalservices Exp $
3    
4    
5  /**  /**
# Line 170  function content_slider_block($op = 'lis Line 170  function content_slider_block($op = 'lis
170      }      }
171    
172      $output_body = '';      $output_body = '';
173      $sql  = " SELECT n.nid, teaser FROM {node} n INNER JOIN {node_revisions} r ON n.nid=r.nid "." WHERE n.status=1 AND n.type='$content_type' LIMIT 5";      $sql  = " SELECT n.nid, teaser FROM {node} n INNER JOIN {node_revisions} r ON n.nid=r.nid "." WHERE n.status=1 AND n.type='$content_type' ORDER BY n.created  LIMIT 5";
174      $results     = db_query($sql);      $results     = db_query($sql);
175    
176      $output_body .= '<div id="slider1" class="sliderwrapper">'."\n";      $output_body .= '<div id="slider1" class="sliderwrapper">'."\n";
# Line 206  function content_slider_block($op = 'lis Line 206  function content_slider_block($op = 'lis
206      $output_body .= '</script>';      $output_body .= '</script>';
207    
208    
209      $output_body .= '</div>';      //$output_body .= '</div>';
210    
211    
212      $block['subject'] = 'Content Slider 1';      $block['subject'] = 'Content Slider 1';

Legend:
Removed from v.1.1.2.4  
changed lines
  Added in v.1.1.2.5

  ViewVC Help
Powered by ViewVC 1.1.2