Closed (duplicate)
Project:
Wysiwyg
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2012 at 10:02 UTC
Updated:
8 Feb 2012 at 13:29 UTC
From wysiwyg_entity_info
'entity keys' => array(
'id' => 'format',
),
While this works, I don't think this is a good idea. If you read the API for hook_entity_info it's clearly states that the entity id key should be numeric.
Other modules might depend on that the entity id is numeric to (as the API says so).
For example the metatags module is affected by this issue.
If you have wysiwyg settings exported with features, and in the same installation profile try to enable metatags, you're gonna be sad as metatags try to insert a string as the entity id and that will not work at all and the installation will fail.
Comments
Comment #1
twodThis is a duplicate of #1343934: Meta Tags & WYSIWYG Incompatibility?.
Actually, the documentation states:
Nothing is stated about entities without fields, and no must-be-numeric requirement is enforced in code.
Please see the other issue for follow-ups.