views_slideshow.install in Views Slideshow 5
Same filename and directory in other branches
File
views_slideshow.installView source
<?php
/**
* Implementation of hook_install().
*/
function views_slideshow_install() {
}
/**
* we had to change the names of the plugins
*/
function views_slideshow_update_1() {
return _views_slideshow_update_reset_cache();
}
function _views_slideshow_update_reset_cache() {
$ret = array();
$ret[] = update_sql("DELETE FROM {cache}");
$ret[] = update_sql("DELETE FROM {cache_views}");
return $ret;
}
function views_slideshow_update_2() {
$ret = array();
$ret[] = update_sql("UPDATE {view_view} SET block_type='slideshow_list' WHERE block_type='views_slideshow_list'");
$ret[] = update_sql("UPDATE {view_view} SET block_type='slideshow_teaser' WHERE block_type='views_slideshow_teaser'");
$ret[] = update_sql("UPDATE {view_view} SET block_type='slideshow_node' WHERE block_type='views_slideshow_node'");
$ret[] = update_sql("UPDATE {view_view} SET page_type='slideshow_list' WHERE page_type='views_slideshow_list'");
$ret[] = update_sql("UPDATE {view_view} SET page_type='slideshow_teaser' WHERE page_type='views_slideshow_teaser'");
$ret[] = update_sql("UPDATE {view_view} SET page_type='slideshow_node' WHERE page_type='views_slideshow_node'");
$ret = array_merge($ret, _views_slideshow_update_reset_cache());
return $ret;
}
Functions
Name | Description |
---|---|
views_slideshow_install | Implementation of hook_install(). |
views_slideshow_update_1 | we had to change the names of the plugins |
views_slideshow_update_2 | |
_views_slideshow_update_reset_cache |