/[drupal]/contributions/modules/cck/includes/views/handlers/content_plugin_style_php_array_ac.inc
ViewVC logotype

Diff of /contributions/modules/cck/includes/views/handlers/content_plugin_style_php_array_ac.inc

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

revision 1.1.2.2, Sat Oct 4 13:14:21 2008 UTC revision 1.1.2.3, Wed Nov 4 15:31:28 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: content_plugin_style_php_array_ac.inc,v 1.1.2.1 2008/09/04 18:12:27 yched Exp $  // $Id: content_plugin_style_php_array_ac.inc,v 1.1.2.2 2008/10/04 13:14:21 karens Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 18  class content_plugin_style_php_array_ac Line 18  class content_plugin_style_php_array_ac
18    
19      // TODO : We don't display grouping info for now.      // TODO : We don't display grouping info for now.
20      // Could be useful for select widget, though.      // Could be useful for select widget, though.
21        $this->view->row_index = 0;
22      foreach ($sets as $title => $records) {      foreach ($sets as $title => $records) {
23        foreach ($records as $label => $row) {        foreach ($records as $label => $row) {
24          $results[$row->{$base_field}] = array(          $results[$row->{$base_field}] = array(
25            'title' => $row->{$title_field_alias},            'title' => $row->{$title_field_alias},
26            'rendered' => $this->row_plugin->render($row),            'rendered' => $this->row_plugin->render($row),
27          );          );
28            $this->view->row_index++;
29        }        }
30      }      }
31        unset($this->view->row_index);
32      return $results;      return $results;
33    }    }
34  }  }

Legend:
Removed from v.1.1.2.2  
changed lines
  Added in v.1.1.2.3

  ViewVC Help
Powered by ViewVC 1.1.2