entity_create('some_type')does not really tell developers that they get a
SomeTypeentity back (aside from a
- Change entity type names, or at least the
entity_create($type)argument, so that's more apparent with what kind of entity you are actually dealing with afterwards.
This is debatable on many fronts, and might have large-scale implications, so let's discuss. ;)