| 1 |
<?php
|
| 2 |
/* $Id: dbfmgreybox.install,v 1.1 2008/11/13 13:12:24 geoffeagles Exp $ */
|
| 3 |
|
| 4 |
/**
|
| 5 |
* Implementation of hook_install().
|
| 6 |
* dbfmgreybox doesn't create it's own tables but does create entries in the variables table
|
| 7 |
*/
|
| 8 |
function dbfmgreybox_install(){
|
| 9 |
//add some code to make the default entry into the variables table.
|
| 10 |
variable_set('dbfmgreybox_pages', "dbfm,\nnode edit,\nnode add");
|
| 11 |
}
|
| 12 |
|
| 13 |
/**
|
| 14 |
* Implementation of hook_uninstall().
|
| 15 |
*/
|
| 16 |
function dbfmgreybox_uninstall() {
|
| 17 |
db_query("DELETE FROM {variable} WHERE name LIKE 'dbfmgreybox!_%' escape '!'");
|
| 18 |
cache_clear_all('variables', 'cache');
|
| 19 |
}
|