Posted by mokargas on June 25, 2007 at 7:31am
Is this possible? I don't want my users/roles to be able to even see this option, how can I remove it?
Is this possible? I don't want my users/roles to be able to even see this option, how can I remove it?
Comments
Ok I removed this by
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
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.
--
If you have a problem, please search before posting a question.
I have not heard of this but
I have not heard of this but it already sounds better, I will look into it. Thankyou :)
Access Control
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
NancyDru
I did try this, but it
I did try this, but it removed the ability to edit content (??) completely. Thankyou for your help :)
It shouldn't
Editing content is a totally separate permission.
Nancy W.
Drupal Cookbook (for New Drupallers)
Adding Hidden Design or How To notes in your database
NancyDru
I agree, but even with
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.