By paradigmshifter on
I'm currently using Drupal 5.x and have a node-type that users need to be able to 'edit' but not 'delete'.
Is this possible without hacking the core?
I'm currently using Drupal 5.x and have a node-type that users need to be able to 'edit' but not 'delete'.
Is this possible without hacking the core?
Comments
Use one of the access
Use one of the access control modules like content_access or nodeaccesss. The good news is in d6 this is part of core.
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
Template.php
Another alternative is to use the template.php file and remove the 'delete' button for the node edit form before it gets rendered on your page.
Hope this helps.
---
www.drupaldiy.com - Showcase your Drupal site
Removing the button doesn't
Removing the button doesn't prevent anyone with the proper permissions from using the /delete url.
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
Go to Administer -> user
Go to Administer -> user management -> access control and Give the permission in node module to edit the particular content type for relevant users.
Thanks,
Vijay Thummar
The whole point is the op
The whole point is the op wants users to edit but not delete-- this is one permission in d5.
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
Disable delete for regular users
Check out Benjamin Melançon's solution here: Disable delete for regular users.
Nodeaccess and Content Access
Also, check out Nodeaccess and Content Access modules.