/[drupal]/contributions/modules/rotor/views/rotor_plugin_style_rotor.inc
ViewVC logotype

Diff of /contributions/modules/rotor/views/rotor_plugin_style_rotor.inc

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

revision 1.1.2.5, Sun Feb 22 22:46:08 2009 UTC revision 1.1.2.6, Fri Nov 6 13:35:42 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: rotor_plugin_style_rotor.inc,v 1.1.2.4 2009/02/22 15:19:47 mrfelton Exp $  // $Id: rotor_plugin_style_rotor.inc,v 1.1.2.5 2009/02/22 22:46:08 mrfelton Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 48  class rotor_plugin_style_rotor extends v Line 48  class rotor_plugin_style_rotor extends v
48      return $options;      return $options;
49    }    }
50    
   function render() {  
     if (empty($this->row_plugin)) {  
       vpr('rotor_plugin_style_rotor: Missing row plugin');  
       return;  
     }  
   
     // Group the rows according to the grouping field, if specified.  
     $sets = $this->render_grouping($this->view->result, $this->options['grouping']);  
   
     // Render each group separately and concatenate.  Plugins may override this  
     // method if they wish some other way of handling grouping.  
     $output = '';  
     foreach ($sets as $title => $records) {  
       if ($this->uses_row_plugin()) {  
         $rows = array();  
         foreach ($records as $label => $row) {  
           $rows[] = $this->row_plugin->render($row);  
         }  
       }  
       else {  
         $rows = $records;  
       }  
       $output .= theme($this->theme_functions(), $this->view, $this->options, $rows, $title);  
     }  
     return $output;  
   }  
   
51    /**    /**
52     * Render the given style.     * Render the given style.
53     */     */

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

  ViewVC Help
Powered by ViewVC 1.1.2