You are here

function front_page_update_7202 in Front Page 7.2

Move data from front_page table to variables and drop table.

File

./front_page.install, line 103
Install, update and uninstall functions for the front page module.

Code

function front_page_update_7202() {
  $result = db_select('front_page', 'fp')
    ->fields('fp')
    ->execute();
  foreach ($result as $role) {
    variable_set("front_page_role_{$role->rid}", (array) $role);
  }
  if (db_table_exists('front_page')) {
    db_drop_table('front_page');
  }
}