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