Mercurial > defr > drupal > ad
diff report/ad_report.install @ 1:948362c2a207 ad
update advertisement
author | pierre |
---|---|
date | Thu, 02 Apr 2009 15:28:21 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/report/ad_report.install Thu Apr 02 15:28:21 2009 +0000 @@ -0,0 +1,24 @@ +<?php +// $Id: ad_report.install,v 1.1.4.2 2009/02/23 22:39:05 jeremy Exp $ + +/** + * @file + * Ad Report database functions. + * + * Copyright (c) 2008-2009 + * Jeremy Andrews <jeremy@tag1consulting.com>. + */ + +/** + * Flush the menu cache to register the new ad_report admin menu. + */ +function ad_report_update_5001() { + $ret = array(); + switch ($GLOBALS['db_type']) { + case 'mysql': + case 'mysqli': + default: + $ret[] = update_sql('DELETE FROM {cache_menu}'); + } + return $ret; +}