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

Diff of /contributions/modules/dbfmgreybox/dbfmgreybox.install

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

revision 1.1, Thu Nov 13 13:12:24 2008 UTC revision 1.2, Wed Nov 19 13:31:42 2008 UTC
# Line 1  Line 1 
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  }  }
# Line 13  function dbfm_install(){ Line 13  function dbfm_install(){
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  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.2