Dont render "Preview" button if $form['preview']['#type'] explicitly set to "hidden"
Means that using formsAPI you can hide the preview button, ofcourse you need to make sure administer > settings > posts > Preview post is set to "Optional"
Eventually this should be a per-node-type basis
| Comment | File | Size | Author |
|---|---|---|---|
| node-anti-preview.patch.txt | 772 bytes | dgtlmoon |
Comments
Comment #1
chx commentedAside from the patch is reversed, the problem is that if you do not want a form element to be present, then you simply unset it and not change its type.
Comment #2
dgtlmoon commentedCorrect, ive since learnt that the correct way to remove / disable the form preview button is via..
thanks!