Remove "Promoted to front page" checkbox

mokargas - June 25, 2007 - 07:31

Is this possible? I don't want my users/roles to be able to even see this option, how can I remove it?

Ok I removed this by

mokargas - June 25, 2007 - 07:35

Ok I removed this by commenting out line 2048 of node.module. I don't think this is a good idea, editing core modules, so if anyone has a better idea please forward.

hook_form_alter

Steven - June 25, 2007 - 09:37

With hook_form_alter(), you can change any form any way you like. You'll want to change the checkbox to a 'value' type, so that it cannot be modified. Typically, for each site, you'll want to make a "mysite_support.module" where you collect all the little tricks like form_alters for your particular needs.

The field spotter module can help you locate form items.

--
If you have a problem, please search before posting a question.

I have not heard of this but

mokargas - June 26, 2007 - 01:47

I have not heard of this but it already sounds better, I will look into it. Thankyou :)

Access Control

NancyDru - June 25, 2007 - 12:10

If the user's role is not given "Administer nodes" control, they won't have any of the "Publishing options".

Nancy W.
Drupal Cookbook (for New Drupallers)
Adding Hidden Design or How To notes in your database

I did try this, but it

mokargas - June 26, 2007 - 01:47

I did try this, but it removed the ability to edit content (??) completely. Thankyou for your help :)

It shouldn't

NancyDru - June 26, 2007 - 02:20

I agree, but even with

mokargas - June 26, 2007 - 02:24

I agree, but even with content editing permissions explicitly set, and administer nodes unset, I still can't edit content. Perhaps an error with my install.

 
 

Drupal is a registered trademark of Dries Buytaert.