summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/file/file.install
diff options
context:
space:
mode:
authorcatch <catch@35733.no-reply.drupal.org>2012-11-17 21:42:30 +0000
committercatch <catch@35733.no-reply.drupal.org>2012-11-17 21:42:30 +0000
commit198846a800486a8ad85bf028d278d8808ff26040 (patch)
tree62e077974cb38a894f602cd66348188af791a0e3 /core/modules/file/file.install
parentd1400e30a98a1423522354b4b37979ff7f516b16 (diff)
downloaddrupal-198846a800486a8ad85bf028d278d8808ff26040.tar.gz
drupal-198846a800486a8ad85bf028d278d8808ff26040.zip
Issue #1804394 by deviance, Albert Volkman: Convert file.module variables to CMI.
Diffstat (limited to 'core/modules/file/file.install')
-rw-r--r--core/modules/file/file.install13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/modules/file/file.install b/core/modules/file/file.install
index ca6e1fdfb2c..27a243825bf 100644
--- a/core/modules/file/file.install
+++ b/core/modules/file/file.install
@@ -232,3 +232,16 @@ function file_requirements($phase) {
return $requirements;
}
+
+/**
+* Converts default_file_main variable to config.
+*
+* @ingroup config_upgrade
+*/
+function file_update_8000() {
+ update_variables_to_config('file.settings', array(
+ 'file_description_type' => 'description.type',
+ 'file_description_length'=>'description.length',
+ 'file_icon_directory'=>'icon.directory',
+ ));
+}