| 1 |
<?php |
<?php |
| 2 |
// $Id: nodefamily.install,v 1.4.2.5 2007/04/28 17:44:30 fago Exp $ |
// $Id: nodefamily.install,v 1.4.2.6 2008/06/09 07:13:18 fago Exp $ |
| 3 |
|
|
| 4 |
function nodefamily_install() { |
function nodefamily_install() { |
| 5 |
switch ($GLOBALS['db_type']) { |
switch ($GLOBALS['db_type']) { |
| 19 |
)"); |
)"); |
| 20 |
default: |
default: |
| 21 |
break; |
break; |
| 22 |
|
case 'mssql': |
| 23 |
|
db_query("CREATE TABLE {nodefamily} ( |
| 24 |
|
parent_nid int NOT NULL default 0, |
| 25 |
|
child_nid int NOT NULL default 0, |
| 26 |
|
PRIMARY KEY(parent_nid,child_nid) |
| 27 |
|
);"); |
| 28 |
|
break; |
| 29 |
} |
} |
| 30 |
// Set the module weight to -2, so that the hook_form_alter() implementation |
// Set the module weight to -2, so that the hook_form_alter() implementation |
| 31 |
// get's called before nodeprofile's implementation |
// get's called before nodeprofile's implementation |