| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @file 5 * Install, update and uninstall functions for the views slideshow module. 6 */ 7 8 /** 9 * Implements hook_install(). 10 */ 11 function views_slideshow_install() { 12 } 13 14 /** 15 * We had to change the names of the plugins 16 */ 17 function views_slideshow_update_1() { 18 return _views_slideshow_update_reset_cache(); 19 } 20 21 function _views_slideshow_update_reset_cache() { 22 $ret = array(); 23 $ret[] = update_sql("DELETE FROM {cache}"); 24 $ret[] = update_sql("DELETE FROM {cache_views}"); 25 return $ret; 26 } 27 28 function views_slideshow_update_2() { 29 $ret = array(); 30 $ret[] = update_sql("UPDATE {views_view} SET block_type='slideshow_list' WHERE block_type='views_slideshow_list'"); 31 $ret[] = update_sql("UPDATE {views_view} SET block_type='slideshow_teaser' WHERE block_type='views_slideshow_teaser'"); 32 $ret[] = update_sql("UPDATE {views_view} SET block_type='slideshow_node' WHERE block_type='views_slideshow_node'"); 33 $ret[] = update_sql("UPDATE {views_view} SET page_type='slideshow_list' WHERE page_type='views_slideshow_list'"); 34 $ret[] = update_sql("UPDATE {views_view} SET page_type='slideshow_teaser' WHERE page_type='views_slideshow_teaser'"); 35 $ret[] = update_sql("UPDATE {views_view} SET page_type='slideshow_node' WHERE page_type='views_slideshow_node'"); 36 $ret = array_merge($ret, _views_slideshow_update_reset_cache()); 37 return $ret; 38 } 39 40 function views_slideshow_update_6000() { 41 $ret = array(); 42 43 // We have two new theme functions. 44 drupal_rebuild_theme_registry(); 45 return $ret; 46 } 47 48 /** 49 * We changed our views handler to group slideshow modes. 50 * We also moved everything out to new modules, so have to change our views. 51 */ 52 function views_slideshow_update_6001() { 53 $ret = array(); 54 55 56 57 return $ret; 58 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |