I want to make the node created comments to close status when user will select the close from the select box.Means the comment node with not be editable further.Please support me to solve this...

Comments

madymad’s picture

How to change status of comment node to closed programmatically

Anonymous’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

Something like this module? Or maybe this module based on views?

madymad’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

solved

Anonymous’s picture

Status: Postponed (maintainer needs more info) » Fixed

No you do not have that coded correctly. There is an examples project that you should review for an example of how to implement hook_form_alter.

madymad’s picture

Thanks , finally i can able to update the database through the form_alter. Now i can change the comment status through programme but when i change the comment field of node table to 1 the node page should be read only mode but after changing its stats is not change..for closing the comment which tables and fields have to update...can you tell me....

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Status: Postponed (maintainer needs more info) » Closed (fixed)