I need to add my own links that would allow a user to publish/unpublish a node.

The system generated link to unpublish a node is something like this: http://localhost/module/node/38/unpublish/244104627136aae0ccfa073eeaa60c8f

I want to know where does the last part come from? I noticed it is different for each session so it must have something to do with user validation. Does anyone know how to generate it?

Comments

stevenc’s picture

This is a module for that:
http://drupal.org/project/url_unpublish

---------------------------------
Steven Wright

Slalom

psyb0rg’s picture

Thanks. Is there anything similar for publishing? I couldn't find it.