You are here

function acl_update_3 in ACL 5

File

./acl.install, line 126

Code

function acl_update_3() {
  $ret = array();

  // Only for MySQL 4.1+
  switch ($GLOBALS['db_type']) {
    case 'mysqli':
      break;
    case 'mysql':
      if (version_compare(mysql_get_server_info($GLOBALS['active_db']), '4.1.0', '<')) {
        return array();
      }
      break;
    case 'pgsql':
      return array();
  }
  $ret = update_convert_table_utf8('acl');
  $ret = array_merge($ret, update_convert_table_utf8('acl_node'));
  $ret = array_merge($ret, update_convert_table_utf8('acl_user'));
  return $ret;
}