| 1 |
<?php |
<?php |
| 2 |
// $Id: click.install,v 1.1 2006/07/07 18:54:52 kbahey Exp $ |
// $Id: click.install,v 1.2 2006/10/17 03:21:01 kbahey Exp $ |
| 3 |
|
|
| 4 |
function click_install() { |
function click_install() { |
| 5 |
switch ($GLOBALS['db_type']) { |
switch ($GLOBALS['db_type']) { |
| 19 |
case 'pgsql': |
case 'pgsql': |
| 20 |
break; |
break; |
| 21 |
} |
} |
| 22 |
|
} |
| 23 |
|
|
| 24 |
if ($query) { |
function click_update_1() { |
| 25 |
drupal_set_message(t('Click module installed successfully.')); |
return _system_update_utf8(array('clicks')); |
|
} |
|
|
else { |
|
|
drupal_set_message(t('Table installation for the click module was unsuccessful. The tables may need to be installed by hand. See click.install file for a list of tables to create.'), 'error'); |
|
|
} |
|
| 26 |
} |
} |
| 27 |
|
|