You are here

function mailhandler_reset_schema in Mailhandler 6.2

1 call to mailhandler_reset_schema()
mailhandler_update_6200 in ./mailhandler.install
Update to work with 6.x-2.x branch.

File

./mailhandler.install, line 578
Install, update and uninstall functions for the Mailhandler module.

Code

function mailhandler_reset_schema() {

  // Include ALL modules
  $modules = module_list(TRUE, FALSE);

  // Set module list as ALL modules
  module_list(FALSE, TRUE, FALSE, $modules);

  // Reset implementions list
  module_implements(NULL, FALSE, TRUE);

  // Run hook_init
  module_invoke_all('init');

  // Reset cached schema
  drupal_get_schema(NULL, TRUE);
}