You are here

function admin_language_update_6100 in Administration Language 6

Implementation of hook_update_N().

File

./admin_language.install, line 35
Update functions for Administration language.

Code

function admin_language_update_6100() {
  $ret = array();
  $result = db_query('SELECT pid, perm FROM {permission}');
  while ($perm = db_fetch_object($result)) {
    $perm->perm = str_replace('display admin pages in english', 'display admin pages in another language', $perm->perm);
    $ret[] = update_sql("UPDATE {permission} SET perm = '{$perm->perm}' WHERE pid = {$perm->pid}");
  }
  return $ret;
}