summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-01-09 16:19:56 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-01-09 16:19:56 +0000
commitcb159b9ff1b3165219292e63a89fa553d5811749 (patch)
tree3ebfbf4da01d867591855c0d3b2c81bca2b64809 /modules/system/system.install
parent3042f3385c65630a913e8ce6816bcd39526d5456 (diff)
downloadbrdo-cb159b9ff1b3165219292e63a89fa553d5811749.tar.gz
brdo-cb159b9ff1b3165219292e63a89fa553d5811749.tar.bz2
#143434 by Jody Lynn: Move 'display post information' to where users would expect.
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install29
1 files changed, 29 insertions, 0 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index e75b91658..5b73c4b87 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -3166,6 +3166,35 @@ function system_update_7016() {
}
/**
+ * Change the theme setting 'toggle_node_info' into a per content type variable.
+ */
+function system_update_7017() {
+ $ret = array();
+ $types = node_get_types();
+ if (count($types)) {
+ foreach ($types as $type) {
+ $node_info = theme_get_setting('toggle_node_info_' . $type->type);
+ if ($node_info !== NULL) {
+ variable_set('node_submitted_' . $type->type, $node_info);
+ $ret[] = array('success' => TRUE, 'query' => "variable_set('node_submitted_$type->type')");
+ }
+ }
+ }
+
+ // Unset deprecated 'toggle_node_info' theme settings.
+ $theme_settings = theme_get_settings();
+ foreach ($theme_settings as $setting => $value) {
+ if (substr($setting, 0, 16) == 'toggle_node_info') {
+ unset($theme_settings[$setting]);
+ }
+ }
+ variable_set('theme_settings', $theme_settings);
+ $ret[] = array('success' => TRUE, 'query' => "variable_set('theme_settings')");
+
+ return $ret;
+}
+
+/**
* @} End of "defgroup updates-6.x-to-7.x"
* The next series of updates should start at 8000.
*/