I'm using Drupal 7 and the Computed Field module. I have this problem both with Custom Content Type and with Custom Entity Type. When I add a computed field and go to the Field Settings, I type in some PHP code and click the Save field settings button. The page merely reloads, with my code deleted and I'm back where I started. Is this a bug? Or is it maybe not liking my code and deleting it rather than causing a fatal error? But it fails even with simple code like $entity_field[0]['value'] = "test"; That gets deleted too. Is it possibly not allowing me to add a computed field since I have already created content and entities of those content and entity types?
Tell me more
×
Drupal Answers is a question and answer site for
Drupal developers and administrators. It's 100% free, no registration required.
|