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.


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

Kudos to Ek Kosmos for sorting this out.

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