Mercurial > defr > drupal > ad
comparison channel/ad_channel.install @ 2:e5584a19768b ad
maj module ad
author | sly |
---|---|
date | Wed, 15 Apr 2009 07:58:32 +0000 |
parents | 948362c2a207 |
children | 416ea999ed76 |
comparison
equal
deleted
inserted
replaced
1:948362c2a207 | 2:e5584a19768b |
---|---|
1 <?php | 1 <?php |
2 // $Id: ad_channel.install,v 1.1.4.3 2009/03/05 21:20:36 jeremy Exp $ | 2 // $Id: ad_channel.install,v 1.1.4.5 2009/04/09 22:04:49 jeremy Exp $ |
3 | 3 |
4 /** | 4 /** |
5 * | 5 * |
6 * Ad channel database schema. | 6 * Ad channel database schema. |
7 * Copyright (c) 2008-2009 Jeremy Andrews <jeremy@tag1consulting.com>. | 7 * Copyright (c) 2008-2009 Jeremy Andrews <jeremy@tag1consulting.com>. |
86 } | 86 } |
87 | 87 |
88 return $ret; | 88 return $ret; |
89 } | 89 } |
90 | 90 |
91 /** | |
92 * Rebuild the menu so that channels and containers can be deleted. | |
93 */ | |
94 function ad_channel_update_6002() { | |
95 cache_clear_all(); | |
96 menu_rebuild(); | |
97 return array(); | |
98 } | |
99 | |
100 /** | |
101 * Introduce no_channel_weight. | |
102 */ | |
103 function ad_channel_update_6003() { | |
104 $ret = array(); | |
105 $ret[] = update_sql("ALTER TABLE {ad_channel} ADD no_channel_weight INT(3) NOT NULL DEFAULT '0'"); | |
106 return $ret; | |
107 } | |
108 |