Mercurial > defr > drupal > ad
annotate report/ad_report.install @ 3:416ea999ed76 ad
maj ad version rc1
| author | sly | 
|---|---|
| date | Mon, 20 Apr 2009 09:49:37 +0000 | 
| parents | 948362c2a207 | 
| children | 
| rev | line source | 
|---|---|
| pierre@1 | 1 <?php | 
| pierre@1 | 2 // $Id: ad_report.install,v 1.1.4.2 2009/02/23 22:39:05 jeremy Exp $ | 
| pierre@1 | 3 | 
| pierre@1 | 4 /** | 
| pierre@1 | 5 * @file | 
| pierre@1 | 6 * Ad Report database functions. | 
| pierre@1 | 7 * | 
| pierre@1 | 8 * Copyright (c) 2008-2009 | 
| pierre@1 | 9 * Jeremy Andrews <jeremy@tag1consulting.com>. | 
| pierre@1 | 10 */ | 
| pierre@1 | 11 | 
| pierre@1 | 12 /** | 
| pierre@1 | 13 * Flush the menu cache to register the new ad_report admin menu. | 
| pierre@1 | 14 */ | 
| pierre@1 | 15 function ad_report_update_5001() { | 
| pierre@1 | 16 $ret = array(); | 
| pierre@1 | 17 switch ($GLOBALS['db_type']) { | 
| pierre@1 | 18 case 'mysql': | 
| pierre@1 | 19 case 'mysqli': | 
| pierre@1 | 20 default: | 
| pierre@1 | 21 $ret[] = update_sql('DELETE FROM {cache_menu}'); | 
| pierre@1 | 22 } | 
| pierre@1 | 23 return $ret; | 
| pierre@1 | 24 } | 
