You are here

function restrict_by_ip_update_7301 in Restrict Login or Role Access by IP Address 7.3

Convert role restriction variables to use hashed role names.

File

./restrict_by_ip.install, line 65

Code

function restrict_by_ip_update_7301() {
  $query = <<<EOL
  update {variable}
  set name = CONCAT('restrict_by_ip_role_', MD5(SUBSTR(name, 21)))
  where name like 'restrict_by_ip_role%'
EOL;
  db_query($query);
}