You are here

function flag_views_bookmark_update in Flag 6.2

Same name and namespace in other branches
  1. 5 includes/flag.views_bookmark.inc \flag_views_bookmark_update()
  2. 6 includes/flag.views_bookmark.inc \flag_views_bookmark_update()

Perform all pieces of the update.

1 call to flag_views_bookmark_update()
flag_install in ./flag.install
Implementation of hook_install().

File

includes/flag.views_bookmark.inc, line 18
Upgrade code to migrate from Views bookmark to Flag module.

Code

function flag_views_bookmark_update() {
  drupal_set_message(t('Migrating Views Bookmark to Flag module. More information about the changes between Views Bookmark and Flag may be found on the <a href="http://drupal.org/node/268269">upgrading handbook page</a>.'));

  // Update Views Bookmark and Remove current Flag tables.
  flag_views_bookmark_update_prepare();

  // Migrate the tables.
  flag_views_bookmark_update_tables();

  // Uninstall Views Bookmark.
  flag_views_bookmark_update_uninstall();

  // Update views.
  // In Drupal 6, this is handled in flag.views_convert.inc.
  drupal_set_message(t('The Flag module has been installed, replacing Views Bookmark. Views Bookmark has been disabled, please remove it from your installation.'));
}