<?php
// $Id: profileplus.install,v 1.2.2.3 2010/08/06 20:56:34 jamesmarks Exp $


/**
 * Implementation of hook_install().
 */
function profileplus_install() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      // put profileplus after user.module by increasing its weight
      db_query("UPDATE {system} SET weight = 2 WHERE name = 'profileplus'");
      break;
    case 'pgsql':
      db_query("UPDATE {system} SET weight = 2 WHERE name = 'profileplus'");
      break;
  }
}
