I have been struggling to modify a node_type using node_type_save(). I edit in interface it works, edit using code and no change. It ended up being a simple matter of setting the modified property to TRUE. This seems like something quite subtle that should be documented.

Comments

boombatower’s picture

Assigned: Unassigned » boombatower
Status: Active » Needs review
StatusFileSize
new641 bytes
boombatower’s picture

StatusFileSize
new685 bytes

Better.

boombatower’s picture

Version: 7.x-dev » 8.x-dev

Guess commit to 8.x and backport.

marvil07’s picture

StatusFileSize
new529 bytes

Minor re roll for core directory change(it applied cleanly on 8.x).

valthebald’s picture

Issue summary: View changes
Status: Needs review » Needs work
Issue tags: +Needs reroll, +needs relevance check

I am not sure node_type_load() is the best place to a hint about node_type saving. Also, needs relevance review/reroll

xjm’s picture

Component: node.module » node system

(Merging "node system" and "node.module" components for 8.x; disregard.)

jdillick’s picture

Assigned: boombatower » jdillick
jdillick’s picture

Version: 8.x-dev » 7.x-dev

Doesn't appear to be relevant to D8 anymore. NodeType config entity, and no relevant procedural wrapper with this property.

jdillick’s picture

Rerolled patch for 7.x.

jdillick’s picture

Status: Needs work » Needs review
jdillick’s picture

Issue tags: -Needs reroll, -needs relevance check +Needs reviewed
mgifford’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -

Patch still applies nicely in SimplyTest.me. Seems like a nice change which could still save some folks some grief.

marvil07’s picture

Issue tags: +Documentation
David_Rothstein’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 7.x - thanks!

  • David_Rothstein committed 032954a on 7.x
    Issue #1051872 by boombatower, jdillick, marvil07: Add documentation...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.