Parent Directory
|
Revision Log
|
Revision Graph
Initial release for Drupal 6.x.
| 1 | <?php |
| 2 | // $Id: profileplus.install,v 1.2 2007/07/28 02:51:47 incrn8 Exp $ |
| 3 | |
| 4 | |
| 5 | /** |
| 6 | * Implementation of hook_install(). |
| 7 | */ |
| 8 | function profileplus_install() { |
| 9 | switch ($GLOBALS['db_type']) { |
| 10 | case 'mysql': |
| 11 | case 'mysqli': |
| 12 | // put profileplus after user.module by increasing its weight |
| 13 | db_query("UPDATE {system} SET weight = 2 WHERE name = 'profileplus'"); |
| 14 | break; |
| 15 | case 'pgsql': |
| 16 | db_query("UPDATE {system} SET weight = 2 WHERE name = 'profileplus'"); |
| 17 | break; |
| 18 | } |
| 19 | } |
| ViewVC Help | |
| Powered by ViewVC 1.1.2 |