You are here

function search_views_convert in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 6.2 modules/search.views_convert.inc \search_views_convert()

@file Field conversion for fields handled by this module.

File

modules/search.views_convert.inc, line 8
Field conversion for fields handled by this module.

Code

function search_views_convert($display, $type, &$view, $field, $id = NULL) {
  switch ($type) {
    case 'filter':
      switch ($field['tablename']) {
        case 'temp_search_results':
          switch ($field['field']) {
            case 'word':
              $view
                ->set_item_option($display, 'filter', $id, 'table', 'search_index');
              $view
                ->set_item_option($display, 'filter', $id, 'field', 'keys');
              break;
          }
          break;
      }
      break;
  }
}