You are here

function flag_views_bookmark_update in Flag 5

Same name and namespace in other branches
  1. 6.2 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 19
flag.view_bookmark.inc

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.
  flag_views_bookmark_update_views();
  drupal_set_message(t('The Flag module has been installed, replacing Views Bookmark. Views Bookmark has been disabled, please remove it from your installation.'));
}