You are here

function og_menu_update_6200 in Organic Groups Menu (OG Menu) 6

Same name and namespace in other branches
  1. 6.2 og_menu.install \og_menu_update_6200()

Implementation of hook_update_N().

File

./og_menu.install, line 41

Code

function og_menu_update_6200() {
  drupal_install_schema('og_menu');
  $result = db_query("SELECT * FROM {og_menu_groups}");
  while ($menu = db_fetch_array($result)) {
    db_query("INSERT INTO {og_menu} (gid, menu_name) VALUES (%d, '%s')", $menu['gid'], $menu['mid']);
  }
  db_query('DROP TABLE {og_menu_groups}');
}