Add/attach a field to all content types I know that I can attach a field to any content type. I have to attach a field to all content types in a my site which are more than 40 content types. It is hard for me to attach this field manually. I'm seeking for an automated way to do this. Is there any module to do that?
Use your favourite SQL client and amnually populate {field_config_instance} table:


In Drupal, create field in one content type.
In your favourite editor create set of 39 queries (40 content types minus that one you worked out manually), with the same field values. Just leave id empty so autoincrement can work, and populate entity_type with your conetnt type names. I use spreadsheets to do that, first spreadsheet column is first query part, second is for the names of content types (obtained by querying {node_type}, third is for last part of the query.
Paste that query set into your SQL client and execute.