/[drupal]/contributions/modules/googleajaxsearch/default_settings.inc
ViewVC logotype

Contents of /contributions/modules/googleajaxsearch/default_settings.inc

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


Revision 1.2 - (show annotations) (download) (as text)
Tue Sep 29 12:50:54 2009 UTC (8 weeks, 3 days ago) by macperlinski
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/x-php
Commiting plugins which were missing in HEAD
1 <?php
2 // $Id$
3
4 /**
5 * @file
6 * Default settings for module. (Constants, values...)
7 */
8
9 //GOOGLE AJAX SEARCH CONSTANTS
10 define('GAS_GOOGLE_RESULT_SIZE_DEFAULT', 4);
11
12 //Default module settings
13 define('GAS_BLOCKS_NUMBER_DEFAULT', 0);
14 define('GAS_API_KEY_DEFAULT', '');
15
16 //Default drupal block settings
17 define('GAS_BLOCK_WEIGHT_DEFAULT', 0);
18 define('GAS_BLOCK_STATUS_DEFAULT', FALSE);
19 define('GAS_BLOCK_REGION_DEFAULT', 'left');
20 define('GAS_BLOCK_CACHE_DEFAULT', BLOCK_NO_CACHE);
21
22 define('GAS_PLUGIN_STATUS_DEFAULT', 0);
23
24 //Default search block settings
25 function gas_default_settings() {
26 return array(
27 'search_options' => array('web_search'),//web_search, local_search video_search blog_search news_search image_search book_search patent_search
28 'form_display' => 0, //0 = Show, 1 = Hide
29 'results_display' => 'DRAW_MODE_LINEAR',//DRAW_MODE_LINEAR, DRAW_MODE_TABBED
30 'results_place' => '',
31 'target_place' => 'LINK_TARGET_BLANK',//LINK_TARGET_BLANK, LINK_TARGET_SELF, LINK_TARGET_TOP, LINK_TARGET_PARENT
32 'results_count' => 'SMALL_RESULTSET',//SMALL_RESULTSET, LARGE_RESULTSET
33 'keywords' => '',
34 'branding_place' => 'searchcontrol-branding-',// plus "$delta", where $delta is corresponding number of block to which the branding is connected
35 'branding_orientation' => 'HORIZONTAL_BRANDING',//HORIZONTAL_BRANDING, VERTICAL_BRANDING'results_web_language_restriction' => '',
36 'results_web_language_restriction' => '1',//Too many to list all parameters here... Check gas_get_web_restriction_languages() function.
37 'results_web_duplicate_content_filter' => '1',//0=off, 1=on
38 'results_web_site_restriction' => '',
39 'results_local_restrict_type' => '',//TYPE_BLENDED_RESULT, TYPE_KMLONLY_RESULTS, TYPE_LOCALONLY_RESULTS
40 'results_video_order' => 'by relevance',//by relevance, by date
41 'blog_site_restriction' => '',
42 'results_blog_order' => 'by relevance',//by relevance, by date
43 'results_news_restrict_topic' => '',//h = top headlines topic, w = world topic, b = business, n = nation topic, t = science and technology topic, el = elections topic, p = politics topic, e = entertainment topic, s = sports topic, m = health topic,
44 'results_news_site_restriction' => '',
45 'results_news_order' => 'by relevance',//by relevance, by date
46 'results_book_restrict_type' => 'TYPE_ALL_BOOKS',//TYPE_FULL_VIEW_BOOKS, TYPE_ALL_BOOKS
47 'results_image_restrict_safesearch' => 'SAFESEARCH_MODERATE',//SAFESEARCH_STRICT, SAFESEARCH_MODERATE, SAFESEARCH_OFF
48 'results_image_restrict_imagesize' => '',//IMAGESIZE_SMALL, IMAGESIZE_MEDIUM, IMAGESIZE_LARGE, IMAGESIZE_EXTRA_LARGE
49 'results_image_restrict_colorization' => '',//COLORIZATION_GRAYSCALE, COLORIZATION_COLOR
50 'results_image_restrict_colorfilter' => '',//COLOR_BLACK, COLOR_BLUE, COLOR_BROWN, COLOR_GRAY, COLOR_GREEN, COLOR_ORANGE, COLOR_PINK, COLOR_PURPLE, COLOR_RED, COLOR_TEAL, COLOR_WHITE, COLOR_YELLOW
51 'results_image_restrict_filetype' => '',//FILETYPE_JPG, FILETYPE_PNG, FILETYPE_GIF, FILETYPE_BMP
52 'results_image_restrict_imagetype' => '',//IMAGETYPE_FACES, IMAGETYPE_PHOTO, IMAGETYPE_CLIPART, IMAGETYPE_LINEART
53 'results_image_site_restriction' => '',
54 'results_patent_restrict_type' => 'TYPE_ANY_STATUS',//TYPE_ISSUED_PATENTS, TYPE_APPLICATIONS, TYPE_ANY_STATUS
55 'results_patent_order' => 'by relevance',//by relevance, by date
56 );
57 }

  ViewVC Help
Powered by ViewVC 1.1.2