From 10d7bbc4d4bdebc482685f2495d427fdb70e153a Mon Sep 17 00:00:00 2001 From: taggon Date: Wed, 31 Aug 2011 09:44:46 +0000 Subject: [PATCH] Add getLangListByLangcodeForAutoComplete() method git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8970 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/module/module.model.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/module/module.model.php b/modules/module/module.model.php index 3ad2c1100..f5001bf9b 100644 --- a/modules/module/module.model.php +++ b/modules/module/module.model.php @@ -1388,5 +1388,16 @@ return $xml_file; } + function getLangListByLangcodeForAutoComplete() { + $keyword = Context::get('search_keyword'); + + $list = array( + array('name'=>'key1', 'value'=>'value1'), + array('name'=>'key2', 'value'=>'value2'), + array('name'=>'key3', 'value'=>'value3') + ); + + $this->add('results', $list); + } } ?>