user_update_dependencies
function user_update_dependencies
user_update_dependencies()
Implements hook_update_dependencies().
File
- modules/user/user.install, line 348
- Install, update and uninstall functions for the user module.
Code
function user_update_dependencies() { // user_update_7006() updates data in the {role_permission} table, so it must // run after system_update_7007(), which populates that table. $dependencies['user'][7006] = array( 'system' => 7007, ); // user_update_7010() needs to query the {filter_format} table to get a list // of existing text formats, so it must run after filter_update_7000(), which // creates that table. $dependencies['user'][7010] = array( 'filter' => 7000, ); // user_update_7012() uses the file API and inserts records into the // {file_managed} table, so it therefore must run after system_update_7061(), // which inserts files with specific IDs into the table and therefore relies // on the table being empty (otherwise it would accidentally overwrite // existing records). $dependencies['user'][7012] = array( 'system' => 7061, ); // user_update_7013() uses the file usage API, which relies on the // {file_usage} table, so it must run after system_update_7059(), which // creates that table. $dependencies['user'][7013] = array( 'system' => 7059, ); return $dependencies; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!user!user.install/function/user_update_dependencies/7.x