| 1 |
<?php
|
| 2 |
// $Id: blog_theme.install,v 1.3 2008/09/30 08:59:48 augustin Exp $
|
| 3 |
|
| 4 |
function blog_theme_update_5001() {
|
| 5 |
$ret = array();
|
| 6 |
|
| 7 |
// activate the new menu item:
|
| 8 |
cache_clear_all();
|
| 9 |
drupal_set_message(t('The module blog_theme has been updated and new features added. Check the <a href="!url">settings page</a>.', array('!url' => url('admin/settings/blog_theme'))));
|
| 10 |
|
| 11 |
return $ret;
|
| 12 |
}
|
| 13 |
|
| 14 |
/**
|
| 15 |
* Delete obsolete variable.
|
| 16 |
*/
|
| 17 |
function blog_theme_update_6000() {
|
| 18 |
$ret = array();
|
| 19 |
variable_del('blog_theme_supported');
|
| 20 |
return $ret;
|
| 21 |
}
|
| 22 |
|
| 23 |
|
| 24 |
/**
|
| 25 |
* Implementation of hook_uninstall().
|
| 26 |
*/
|
| 27 |
function blog_theme_uninstall() {
|
| 28 |
db_query("DELETE FROM {variable} WHERE name LIKE 'blog_theme_%%'");
|
| 29 |
}
|
| 30 |
|