Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $finder = new finder();
- $finder->disabled = FALSE; /* Edit this to true to make a default finder disabled initially */
- $finder->api_version = 2;
- $finder->name = 'content_finder';
- $finder->views_view = 'finder_node';
- $finder->views_display = 'page_1';
- $finder->title = 'Поиск фильмов и сериалов';
- $finder->description = 'This is an example finder that finds nodes by title using an autocomplete element.';
- $finder->path = 'fsearch';
- $finder->block = TRUE;
- $finder->status = TRUE;
- $finder->settings = array(
- 'search_tab' => 'node',
- 'block' => TRUE,
- 'form_on_page' => TRUE,
- 'find_button' => 1,
- 'find_text' => 'Найти',
- 'go_button' => 0,
- 'go_text' => 'Go',
- 'ajax_effect' => 'none',
- 'show_results' => 'filter',
- 'results_style' => 'views',
- 'no_results' => 'configured',
- 'pager' => 10,
- 'redirect' => 'best',
- 'element_logic' => 'AND',
- 'url' => 'enabled',
- 'url_delimiter' => ',',
- 'ajax' => 0,
- 'ajax_remote' => 0,
- 'ajax_results_load' => 0,
- 'ajax_results_update' => 0,
- 'autosubmit' => 1,
- 'search' => '1',
- 'no_results_configured' => '<?php drupal_goto(\'node/123\') ?>',
- 'custom_results_style_render' => 1,
- 'results_style_views_format' => 0,
- );
- $finder->elements = array(
- 'title' => (object) array(
- 'id' => 'title',
- 'finder' => 'content_finder',
- 'settings' => array(
- 'field_logic' => 'OR',
- 'value_logic' => 'AND',
- 'match' => 'c',
- 'fields' => array(
- 'node.title' => (object) array(
- 'table' => 'node',
- 'field' => 'title',
- 'relationship' => NULL,
- ),
- ),
- 'max_suggestions' => 10,
- 'autocomplete_field_logic' => 'OR',
- 'autocomplete_value_logic' => 'OR',
- 'autocomplete_match' => 'c',
- 'sort' => 0,
- 'autocomplete_match_custom_operator' => '',
- 'autocomplete_match_custom_prefix' => '',
- 'autocomplete_match_custom_suffix' => '',
- 'match_custom_operator' => '',
- 'match_custom_prefix' => '',
- 'match_custom_suffix' => '',
- 'ajax_load' => 0,
- ),
- 'title' => 'Название',
- 'element' => 'autocomplete',
- 'weight' => 0,
- 'parent' => '',
- ),
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement