#797668 by marcingy, StuartJNCC: Update fails on node_update_7006.
parent
16a30f1958
commit
8aa44b55a2
|
@ -499,7 +499,7 @@ function node_update_7006(&$sandbox) {
|
||||||
// Add body field instances for existing node types.
|
// Add body field instances for existing node types.
|
||||||
foreach ($result as $node_type) {
|
foreach ($result as $node_type) {
|
||||||
if ($node_type->has_body) {
|
if ($node_type->has_body) {
|
||||||
node_add_body_field($node_type->type, $node_type->body_label);
|
node_add_body_field($node_type, $node_type->body_label);
|
||||||
}
|
}
|
||||||
|
|
||||||
$sandbox['node_types_info'][$node_type->type] = array(
|
$sandbox['node_types_info'][$node_type->type] = array(
|
||||||
|
|
|
@ -537,7 +537,7 @@ function node_type_save($info) {
|
||||||
* Add default body field to a node type.
|
* Add default body field to a node type.
|
||||||
*
|
*
|
||||||
* @param $type
|
* @param $type
|
||||||
* The node type name.
|
* A node type object.
|
||||||
* @param $label
|
* @param $label
|
||||||
* The label for the body instance.
|
* The label for the body instance.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue