| 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(). |
| 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>.'); |