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

Diff of /contributions/modules/interests/interests.install

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

revision 1.4.2.1, Tue Sep 9 04:15:13 2008 UTC revision 1.4.2.2, Sun Apr 26 02:59:38 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: interests.install,v 1.4 2007/11/03 04:11:11 auriar Exp $  // $Id: $
3    
4    /**
5     * @file interests.install
6     * Installation file for interests module
7     */
8    
9  /**  /**
10   * Implementation of hook_install().   * Implementation of hook_install().
# Line 33  function interests_install() { Line 38  function interests_install() {
38    
39  // apply updates for those using the initial release  // apply updates for those using the initial release
40  function interests_update_1() {  function interests_update_1() {
41      $ret = array();
42    switch ($GLOBALS['db_type']) {    switch ($GLOBALS['db_type']) {
43      case 'mysql':      case 'mysql':
44      case 'mysqli':      case 'mysqli':
# Line 42  function interests_update_1() { Line 48  function interests_update_1() {
48        ) /*!40100 DEFAULT CHARACTER SET utf8 */;");        ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
49      break;      break;
50    }    }
51    return $ret ? $ret : array();    return $ret;
52  }  }
53    
54  function interests_uninstall(){  function interests_uninstall() {
55    if (db_table_exists('interests')) {    if (db_table_exists('interests')) {
56      db_query("DROP TABLE {interests}");      db_query("DROP TABLE {interests}");
57      db_query("DROP TABLE {interests_vocabs}");      db_query("DROP TABLE {interests_vocabs}");

Legend:
Removed from v.1.4.2.1  
changed lines
  Added in v.1.4.2.2

  ViewVC Help
Powered by ViewVC 1.1.2