/[drupal]/contributions/modules/views/modules/search.views_convert.inc
ViewVC logotype

Contents of /contributions/modules/views/modules/search.views_convert.inc

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


Revision 1.2 - (show annotations) (download) (as text)
Tue Jun 30 19:14:27 2009 UTC (4 months, 4 weeks ago) by merlinofchaos
Branch: MAIN
CVS Tags: DRUPAL-6--2-7, HEAD
Branch point for: DRUPAL-6--2, DRUPAL-7--3
Changes since 1.1: +3 -6 lines
File MIME type: text/x-php
More Views convert updates from Darren Oh
1 <?php
2 // $Id: search.views_convert.inc,v 1.1 2009/04/07 23:24:55 merlinofchaos Exp $
3
4 /**
5 * @file
6 * Field conversion for fields handled by this module.
7 */
8
9 function search_views_convert($display, $type, &$view, $field, $id = NULL) {
10 switch ($type) {
11 case 'filter':
12 switch ($field['tablename']) {
13 case 'temp_search_results':
14 switch ($field['field']) {
15 case 'word':
16 $view->set_item_option($display, 'filter', $id, 'table', 'search_index');
17 $view->set_item_option($display, 'filter', $id, 'field', 'keys');
18 break;
19 }
20 break;
21 }
22 break;
23 }
24 }

  ViewVC Help
Powered by ViewVC 1.1.2