| 1 |
<?php
|
| 2 |
// $Id: $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* @file
|
| 6 |
* Provides install and uninstall functions for commentrss.
|
| 7 |
*/
|
| 8 |
|
| 9 |
/**
|
| 10 |
* Implementation of hook_install().
|
| 11 |
*/
|
| 12 |
function commentrss_install() {
|
| 13 |
variable_set('commentrss_site', TRUE);
|
| 14 |
variable_set('commentrss_node', TRUE);
|
| 15 |
}
|
| 16 |
|
| 17 |
/**
|
| 18 |
* Implementation of hook_uninstall().
|
| 19 |
*/
|
| 20 |
function commentrss_uninstall() {
|
| 21 |
// Delete all the commentrss variables and then clear the variable cache.
|
| 22 |
db_query("DELETE FROM {variable} WHERE name LIKE 'commentrss_%'");
|
| 23 |
db_query("DELETE FROM {menu} WHERE path = 'admin/content/commentrss'");
|
| 24 |
cache_clear_all('variables', 'cache');
|
| 25 |
}
|