summaryrefslogtreecommitdiff
path: root/modules/user
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-06-28 02:05:47 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-06-28 02:05:47 +0000
commit029e7b8828adbbe6c68d5f3809abaca5f704ad3c (patch)
treeb29753faf51ba176d45df01bfa184c05b5aaabb9 /modules/user
parent8ef7c6fb8db3e3100488968a532d0237ed350341 (diff)
downloadbrdo-029e7b8828adbbe6c68d5f3809abaca5f704ad3c.tar.gz
brdo-029e7b8828adbbe6c68d5f3809abaca5f704ad3c.tar.bz2
#838438 by Damien Tournoud, chx: Added basic tests for D6 => D7 upgrade path, and framework for further extending upgrade test coverage. W00t! :D
Diffstat (limited to 'modules/user')
-rw-r--r--modules/user/user.install31
1 files changed, 31 insertions, 0 deletions
diff --git a/modules/user/user.install b/modules/user/user.install
index 2a2b6da6f..cd69c4c6c 100644
--- a/modules/user/user.install
+++ b/modules/user/user.install
@@ -324,6 +324,23 @@ function user_install() {
}
/**
+ * Implements hook_update_dependencies().
+ */
+function user_update_dependencies() {
+ // Run all the critical user upgrades before everything.
+ $dependencies['system'][7000] = array(
+ 'user' => 7008,
+ );
+ // user_update_7006 relies on filter_update_7002.
+ // TODO: move user_update_7006 down below in the upgrade process.
+ $dependencies['user'][7006] = array(
+ 'filter' => 7002,
+ );
+
+ return $dependencies;
+}
+
+/**
* @defgroup user-updates-6.x-to-7.x User updates from 6.x to 7.x
* @{
*/
@@ -640,6 +657,20 @@ function user_update_7009() {
}
/**
+ * Update the {user}.signature_format column.
+ */
+function user_update_7010() {
+ // It was previously possible for a value of "0" to be stored in database
+ // tables to indicate that a particular piece of text should be filtered
+ // using the default text format.
+ $default_format = variable_get('filter_default_format', 1);
+ db_update('users')
+ ->fields(array('signature_format' => $default_format))
+ ->condition('signature_format', 0)
+ ->execute();
+}
+
+/**
* @} End of "defgroup user-updates-6.x-to-7.x"
* The next series of updates should start at 8000.
*/