There's no way to remove the Print options from the content submission form

drupalina - October 27, 2009 - 06:10
Project:Printer, e-mail and PDF versions
Version:6.x-1.10
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi,

There's no way to remove the Print options from the content submission form. I think admins should have an option to exclude print options from the node add/edit forms.

I'd imagine this would be important for sites which have a large end-user base and which try to keep the conent submission interface as minimalist and clean as possible.

#1

johns582 - October 29, 2009 - 16:50

This is a problem for me too. I am using the Form API to override a form for adding nodes of a custom content type. Unsetting the relevant array element for the printer friendly label doesn't work as it does with other form labels. I don't want the public to see this label, as it's confusing and they shouldn't be allowed to choose printer-friendly options for content they generate anyway. Any temporary workaround for this?

#2

johns582 - October 29, 2009 - 17:11

Actually, I found my own workaround in case this helps anyone. Assuming you are creating a custom form, you will have your form id. So just go into the .module file for each aspect of this module you have enabled (print, email, PDF - there is a .module for each) and edit the _form_alter function to execute it's logic only in cases where $form_id != "your_form_id"

#3

jcnventura - October 29, 2009 - 17:32

The right solution is to check for the "admin print*" permissions in the form_alter() functions in each .module file. I will do this change soon, once I have some time to implement it and test it.

João

#4

jcnventura - October 30, 2009 - 00:18
Status:active» postponed (maintainer needs more info)

Forget my previous comment.

This should not be happening if your users don't have the "node-specific print configuration" permission.

João

#5

jcnventura - November 13, 2009 - 10:27
Status:postponed (maintainer needs more info)» closed

No further info in two weeks. Closing the issue.

 
 

Drupal is a registered trademark of Dries Buytaert.