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

Contents of /contributions/modules/feed_node/feed_node.install

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


Revision 1.1 - (show annotations) (download) (as text)
Wed Dec 13 17:09:03 2006 UTC (2 years, 11 months ago) by dayre
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-4-7
File MIME type: text/x-php
Initial checkin.
1 <?php
2 // $Id$
3
4 /**
5 * Implementation of the hook_install() module.
6 */
7 function feed_node_install() {
8 switch ($GLOBALS['db_type']) {
9 case 'mysql':
10 case 'mysqli':
11 db_query("CREATE TABLE feed_node (
12 nid int(10) unsigned NOT NULL default '0',
13 fid int(10) NOT NULL default '0',
14 numItems int(10) NOT NULL default '0',
15 displayStyle tinyint(1) NOT NULL default '0',
16 PRIMARY KEY (nid,fid)
17 ) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;");
18 break;
19 }
20
21 if (!db_error()) {
22 drupal_set_message("The feed node module has been installed successfully.");
23 }
24 else {
25 drupal_set_message(t("A database error occured installing the feed node DB schema. Feed node may not work."), "error");
26 }
27
28 include_once(drupal_get_path('module', 'feed_node') .'/feed_node.module');
29 _feed_node_aggregator_dependency_check();
30
31 }
32
33 ?>

  ViewVC Help
Powered by ViewVC 1.1.2