/[drupal]/contributions/modules/luceneapi/luceneapi.module
ViewVC logotype

Diff of /contributions/modules/luceneapi/luceneapi.module

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

revision 1.37, Tue Mar 31 23:57:41 2009 UTC revision 1.38, Wed Apr 1 01:50:58 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: luceneapi.module,v 1.36 2009/03/31 23:48:12 cpliakas Exp $  // $Id: luceneapi.module,v 1.37 2009/03/31 23:57:41 cpliakas Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 450  function luceneapi_term_get($text, $fiel Line 450  function luceneapi_term_get($text, $fiel
450  }  }
451    
452  /**  /**
  * Clears luceneapi values from the cache table.  
  *  
  * @return  
  *   NULL  
  */  
 function luceneapi_clear_cache() {  
   foreach (luceneapi_module_list() as $module) {  
     $cid = sprintf('%s_facet', $module);  
     cache_clear_all($cid, 'cache');  
   }  
 }  
   
 /**  
453   * Helper function that returns an index when the $index parameter could either   * Helper function that returns an index when the $index parameter could either
454   * be an index object, module name, or NULL flagging that the module name should   * be an index object, module name, or NULL flagging that the module name should
455   * be retrieved from arg(1).   * be retrieved from arg(1).
# Line 1330  function _luceneapi_form_submit($key_ele Line 1317  function _luceneapi_form_submit($key_ele
1317   *   NULL   *   NULL
1318   */   */
1319  function luceneapi_system_modules_form_submit($form, &$form_state) {  function luceneapi_system_modules_form_submit($form, &$form_state) {
1320    luceneapi_clear_cache();    foreach (luceneapi_module_list() as $module) {
1321        cache_clear_all($module, 'cache', TRUE);
1322      }
1323  }  }
1324    
1325  /**  /**

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38

  ViewVC Help
Powered by ViewVC 1.1.2