| 1 |
<?php |
<?php |
| 2 |
// $Id $ |
/* $Id:$ */ |
| 3 |
|
|
| 4 |
function path_access_install() { |
function path_access_install() { |
| 5 |
drupal_set_message('Installing Path Access'); |
drupal_set_message('Installing Path Access'); |
| 6 |
switch ($GLOBALS['db_type']) { |
switch ($GLOBALS['db_type']) { |
| 7 |
case 'mysqli': |
case 'mysqli': |
| 8 |
case 'mysql': |
case 'mysql': |
| 9 |
db_query("CREATE TABLE `path_access` ( |
db_query("CREATE TABLE IF NOT EXISTS {path_access} ( |
| 10 |
`pid` int(10) NOT NULL default '0', |
`pid` int(10) NOT NULL default '0', |
| 11 |
`rid` int(10) NOT NULL default '0', |
`rid` int(10) NOT NULL default '0', |
| 12 |
`pages` text, |
`pages` text, |
| 30 |
drupal_set_message(t('The installation of Path Access module was unsuccessful.'), 'error'); |
drupal_set_message(t('The installation of Path Access module was unsuccessful.'), 'error'); |
| 31 |
} |
} |
| 32 |
} |
} |
|
|
|