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

Contents of /contributions/modules/dbfmgreybox/dbfmgreybox.install

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


Revision 1.2 - (show annotations) (download) (as text)
Wed Nov 19 13:31:42 2008 UTC (12 months, 1 week ago) by geoffeagles
Branch: MAIN
CVS Tags: DRUPAL-5--3-2, HEAD
Changes since 1.1: +3 -3 lines
File MIME type: text/x-php
by Geoff - change to install script to complete an entry in the variables table
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 }

  ViewVC Help
Powered by ViewVC 1.1.2