/[drupal]/contributions/modules/views_slideshow/views_slideshow.install
ViewVC logotype

Contents of /contributions/modules/views_slideshow/views_slideshow.install

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


Revision 1.1 - (show annotations) (download) (as text)
Wed Jan 23 18:46:40 2008 UTC (22 months ago) by aaron
Branch: MAIN
CVS Tags: DRUPAL-5--1-0-BETA1, DRUPAL-6--1-0-BETA1, HEAD
Branch point for: DRUPAL-5, DRUPAL-6--1
File MIME type: text/x-php
allow teasers in slideshow
1 <?php
2 // $Id:$
3
4 /**
5 * Implementation of hook_install().
6 */
7 function views_slideshow_install() {
8 }
9
10 /**
11 * we had to change the names of the plugins
12 */
13 function views_slideshow_update_1() {
14 return _views_slideshow_update_reset_cache();
15 }
16
17 function _views_slideshow_update_reset_cache() {
18 $ret = array();
19 $ret[] = update_sql("DELETE FROM {cache}");
20 $ret[] = update_sql("DELETE FROM {cache_views}");
21 return $ret;
22 }
23
24 function views_slideshow_update_2() {
25 $ret = array();
26 $ret[] = update_sql("UPDATE {view_view} SET block_type='slideshow_list' WHERE block_type='views_slideshow_list'");
27 $ret[] = update_sql("UPDATE {view_view} SET block_type='slideshow_teaser' WHERE block_type='views_slideshow_teaser'");
28 $ret[] = update_sql("UPDATE {view_view} SET block_type='slideshow_node' WHERE block_type='views_slideshow_node'");
29 $ret[] = update_sql("UPDATE {view_view} SET page_type='slideshow_list' WHERE page_type='views_slideshow_list'");
30 $ret[] = update_sql("UPDATE {view_view} SET page_type='slideshow_teaser' WHERE page_type='views_slideshow_teaser'");
31 $ret[] = update_sql("UPDATE {view_view} SET page_type='slideshow_node' WHERE page_type='views_slideshow_node'");
32 $ret = array_merge($ret, _views_slideshow_update_reset_cache());
33 return $ret;
34 }

  ViewVC Help
Powered by ViewVC 1.1.2