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

Diff of /contributions/modules/tw/tw.install

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

revision 1.1.2.3, Tue Apr 14 20:36:59 2009 UTC revision 1.1.2.4, Fri May 1 01:44:13 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  /* $Id: tw.install,v 1.1.2.2 2009/03/24 00:05:38 mikeryan Exp $ */  // $Id$
3    
4  /**  /**
5   * @file   * @file
# Line 7  Line 7 
7    
8  /**  /**
9   * Implementation of hook_schema().   * Implementation of hook_schema().
  *  
  * @return unknown  
10   */   */
11  function tw_schema() {  function tw_schema() {
12    $schema['tw_tables'] = array(    $schema['tw_tables'] = array(
# Line 156  function tw_schema() { Line 154  function tw_schema() {
154    
155  /**  /**
156   * Implementation of hook_install().   * Implementation of hook_install().
  *  
  * @return unknown  
157   */   */
158  function tw_install() {  function tw_install() {
159    // Create tables    // Create tables
# Line 166  function tw_install() { Line 162  function tw_install() {
162    
163  /**  /**
164   * Implementation of hook_uninstall().   * Implementation of hook_uninstall().
  *  
  * @return unknown  
165   */   */
166  function tw_uninstall() {  function tw_uninstall() {
167    // Remove tables    // Remove tables
# Line 195  function tw_update_6001() { Line 189  function tw_update_6001() {
189    while ($row = db_fetch_object($result)) {    while ($row = db_fetch_object($result)) {
190      $unprefixed = schema_unprefix_table($row->tablename);      $unprefixed = schema_unprefix_table($row->tablename);
191      $ret[] = update_sql("UPDATE {tw_tables}      $ret[] = update_sql("UPDATE {tw_tables}
192                           SET tablename='" . $unprefixed."'                           SET tablename='" . $unprefixed ."'
193                           WHERE twtid=" . $row->twtid);                           WHERE twtid=" . $row->twtid);
194    }    }
195    return $ret;    return $ret;

Legend:
Removed from v.1.1.2.3  
changed lines
  Added in v.1.1.2.4

  ViewVC Help
Powered by ViewVC 1.1.2