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

Contents of /contributions/modules/nodeteaser/nodeteaser.install

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


Revision 1.1 - (show annotations) (download) (as text)
Mon Sep 11 17:47:22 2006 UTC (3 years, 2 months ago) by ideaoforder
Branch: MAIN
CVS Tags: DRUPAL-5--1-1, DRUPAL-5--1-0, DRUPAL-5--1-2, HEAD
Branch point for: DRUPAL-5, DRUPAL-4-7
File MIME type: text/x-php
*** empty log message ***
1 <?php
2 function nodeteaser_install() {
3 switch ($GLOBALS['db_type']) {
4 case 'mysql':
5 case 'mysqli':
6 db_query("CREATE TABLE {nodeteaser} (
7 nid int(11) NOT NULL default '0',
8 teaser text NOT NULL,
9 KEY nid (nid)
10 ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
11 break;
12 case 'pgsql':
13 db_query("CREATE TABLE {nodeteaser} (
14 nid int NOT NULL default '0',
15 teaser text NOT NULL,
16 KEY nid (nid)
17 ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
18 break;
19 }
20
21 // Notify of changes
22 drupal_set_message(t('Node teaser module was successfully installed with default options. To customize node teaser, please view the <a href="%settings">node teaser settings page</a>.', array('%settings' => url('admin/settings/nodeteaser'))));
23
24 }
25
26 function nodeteaser_update_1() {
27 return _system_update_utf8(array('nodeteaser'));
28 }
29 ?>

  ViewVC Help
Powered by ViewVC 1.1.2