/[drupal]/contributions/modules/httpHeaders/http_headers.install
ViewVC logotype

Diff of /contributions/modules/httpHeaders/http_headers.install

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

revision 1.1, Thu Apr 24 10:07:31 2008 UTC revision 1.2, Sun Sep 7 15:06:00 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: http_headers.install,v 1.1 2008/04/14 20:22:09 matslats Exp $  // $Id$
3    
4  /**  /**
5   * Implementation of hook_install().   * Implementation of hook_install().
# Line 16  function http_headers_install() { Line 16  function http_headers_install() {
16      drupal_set_message("pgsql install not written; Using mysql query.");      drupal_set_message("pgsql install not written; Using mysql query.");
17    
18      $result=db_query("ALTER TABLE {node_type}      $result=db_query("ALTER TABLE {node_type}
19        ADD `header_lastmod` VARCHAR( 20 ) NOT NULL ,      ADD `header_lastmod` VARCHAR( 20 ) NOT NULL ,
20        ADD `header_expires` INT( 8 ) NOT NULL ;");      ADD `header_expires` INT( 8 ) NOT NULL ;");
21    }    }
22    if ($result){    if ($result){
23      drupal_set_message('http_headers has been installed to your '.$GLOBALS['db_type'].' database. Now <a href="/admin/content/types">edit a contentType</a>.');      drupal_set_message('http_headers has been installed to your '.$GLOBALS['db_type'].' database. Now <a href="/admin/content/types">edit a contentType</a>.');

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

  ViewVC Help
Powered by ViewVC 1.1.2