diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-10-08 07:58:47 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-10-08 07:58:47 +0000 |
commit | c4e1242e92f3bcedc15a663821e080dcea4be4b8 (patch) | |
tree | 59215bf056869efb33af429e78aed6660dc80efe /modules/node | |
parent | f5b02199c737d7a2de051d479de703a2176b1cbe (diff) | |
download | brdo-c4e1242e92f3bcedc15a663821e080dcea4be4b8.tar.gz brdo-c4e1242e92f3bcedc15a663821e080dcea4be4b8.tar.bz2 |
#412518 by catch, bangpound, and yched: Convert taxonomy_node_* to field API (with upgrade path). Say buh-bye to old, crusty code.
Diffstat (limited to 'modules/node')
-rw-r--r-- | modules/node/node.pages.inc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/node/node.pages.inc b/modules/node/node.pages.inc index 60804ff45..82b6c9628 100644 --- a/modules/node/node.pages.inc +++ b/modules/node/node.pages.inc @@ -85,7 +85,7 @@ function node_object_prepare($node) { // If this is a new node, fill in the default values. if (!isset($node->nid)) { foreach (array('status', 'promote', 'sticky') as $key) { - $node->$key = in_array($key, $node_options); + $node->$key = (int) in_array($key, $node_options); } global $user; $node->uid = $user->uid; @@ -543,9 +543,6 @@ function node_revision_revert_confirm_submit($form, &$form_state) { $node_revision = $form['#node_revision']; $node_revision->revision = 1; $node_revision->log = t('Copy of the revision from %date.', array('%date' => format_date($node_revision->revision_timestamp))); - if (module_exists('taxonomy')) { - $node_revision->taxonomy = array_keys($node_revision->taxonomy); - } node_save($node_revision); |