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

Diff of /contributions/modules/linkimagefield/linkimagefield.install

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

revision 1.1.2.1, Tue Nov 25 10:51:37 2008 UTC revision 1.1.2.2, Wed Jul 1 01:25:42 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id:$  // $Id: linkimagefield.install,v 1.2 2008/11/27 06:15:54 challakamal Exp $
3    /**
4     * @file
5     * linkimagefield install file
6     */
7    
8  /**  /**
9   * Implementation of hook_install().   * Implementation of hook_install().
# Line 35  function linkimagefield_update_1() { Line 39  function linkimagefield_update_1() {
39    return $ret;    return $ret;
40  }  }
41    
   
   
   
   
42  /**  /**
43   * Schema change to enable alt and title tags.   * Schema change to enable alt and title tags.
44   */   */
# Line 61  function linkimagefield_update_2() { Line 61  function linkimagefield_update_2() {
61            'fid' => array('type' => 'int', 'not null' => TRUE, 'default' => '0'),            'fid' => array('type' => 'int', 'not null' => TRUE, 'default' => '0'),
62            'title' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => "''", 'sortable' => TRUE),            'title' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => "''", 'sortable' => TRUE),
63            'alt' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => "''", 'sortable' => TRUE),            'alt' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => "''", 'sortable' => TRUE),
64            'url' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => "''", 'sortable' => TRUE),            'url' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => "''", 'sortable' => TRUE),
65          );          );
66          content_alter_db_field($field, $oldcolumns, $field, $newcolumns);          content_alter_db_field($field, $oldcolumns, $field, $newcolumns);
67          break;          break;
68      }      }
69      drupal_set_message('altered: <br /><pre>'. print_r($field, true) .'</pre>');      drupal_set_message('altered: <br /><pre>'. print_r($field, TRUE) .'</pre>');
70    }    }
71    
72    
73    db_query('DELETE FROM {cache}');    db_query('DELETE FROM {cache}');
74    return $ret;    return $ret;
75  }  }
   
   
   

Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2

  ViewVC Help
Powered by ViewVC 1.1.2