2

This question already has an answer here:

I have multiple fields across my site, and multiple text filters. I need to delete one of the filters, but I know that it will result in users getting that whacky permission denied error when they try to edit the field.

Is there a way to bulk update all fields input filters? I started looking at field_update_field in the field CRUD api, but I'm at a loss.

marked as duplicate by Free Radical, Shawn Conn, Scott Joudry, Krishna Mohan, Mołot Jun 8 '15 at 9:13

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1

Turns out this was solved in a different question, the answer is below:

Try this way, by making a loop for all nodes of certain type:

$node = node_load(nid);
$node->body[$node->language][0]['format'] = 'full_html'; // plain_text
node_save($node);

Kudos to Ek Kosmos for sorting this out.

Not the answer you're looking for? Browse other questions tagged or ask your own question.