/[drupal]/contributions/modules/leech/leech_keywords/engines/omigili/leech_keywords_omigili.module
ViewVC logotype

Diff of /contributions/modules/leech/leech_keywords/engines/omigili/leech_keywords_omigili.module

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

revision 1.1, Tue Nov 6 16:31:46 2007 UTC revision 1.1.2.1, Tue Nov 6 16:31:46 2007 UTC
# Line 0  Line 1 
1    <?php
2    /*
3     * Created on Apr 6, 2007
4     *
5     * To change the template for this generated file go to
6     * Window - Preferences - PHPeclipse - PHP - Code Templates
7     */
8    
9    
10    function leech_keywords_engine_omigili_keywords_engine_api($action, $args = array()) {
11      switch($action) {
12        case 'list_engines':
13          return array('engine_omigili' => t('Omigili search'));
14          break;
15        case 'parse_url':
16          if( isset($args['engines']['engine_omigili']) && $args['engines']['engine_omigili'] != FALSE) {
17            return array('engine_omigili' => _omigili_engine_parse_url($args['keywords']));
18          }
19          break;
20      }
21    }
22    
23    function _omigili_engine_parse_url ($keywords = ""){
24      $keywords = urlencode($keywords);
25      $url = "http://www.omgili.com/rss.search?q=$keywords&p=1";
26      return $url;
27    }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.2.1

  ViewVC Help
Powered by ViewVC 1.1.2