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

Diff of /contributions/modules/contact_forms/contact_forms.install

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

revision 1.6, Fri Oct 23 11:40:59 2009 UTC revision 1.7, Sun Nov 8 08:19:18 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: contact_forms.install,v 1.5 2008/01/31 01:53:34 gpdinoz Exp $  // $Id: contact_forms.install,v 1.6 2009/10/23 11:40:59 gpdinoz Exp $
3    
4  /**  /**
5   * Implementation of hook_install().   * Implementation of hook_install().
6   */   */
7  function contact_forms_install() {  function contact_forms_install() {
8     //Alter the contact table to add an info field for each category    //Alter the contact table to add an info field for each category
9     $sql = 'ALTER TABLE {contact} ADD page_info TEXT NULL';    $sql = 'ALTER TABLE {contact} ADD page_info TEXT NULL';
10     db_query($sql);    db_query($sql);
11    
   // contact_list.module is enabled - disable and put message in watchdog saying contact_forms replaces contact_lists  
12    watchdog ('Contact Forms', 'contact_forms module installed');    watchdog ('Contact Forms', 'contact_forms module installed');
13    drupal_set_message(t("Contact Forms module has been enabled. You can edit it's settings at !link",    drupal_set_message(t("Contact Forms module has been enabled. You can edit it's settings at !link",
14      array( '!link' => l('Administer > Site building > Contact form ',  'admin/build/contact/settings' ) )      array( '!link' => l('Administer > Site building > Contact form ',  'admin/build/contact/settings' ) )
# Line 37  function contact_forms_uninstall() { Line 36  function contact_forms_uninstall() {
36    cache_clear_all(null, 'cache_page');    cache_clear_all(null, 'cache_page');
37    
38    watchdog ('Contact Forms', 'Contact Forms module removed');    watchdog ('Contact Forms', 'Contact Forms module removed');
39    }
40    
41    /**
42    * Implementation of hook_update_N()
43    */
44    function contact_forms_update_6100() {
45      $ret = array();
46      db_add_field($ret, 'contact', 'page_info', array('type' => 'test', 'not null' => FALSE));
47      return $ret;
48  }  }

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.2