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

Contents of /contributions/modules/commentrss/commentrss.install

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


Revision 1.1 - (show annotations) (download) (as text)
Sun Jul 15 20:17:07 2007 UTC (2 years, 4 months ago) by tangent
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-5
File MIME type: text/x-php
Initial commit
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 }

  ViewVC Help
Powered by ViewVC 1.1.2